We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d4895c commit 3ac2639Copy full SHA for 3ac2639
src/components/BaseColumn.php
@@ -201,7 +201,7 @@ public function init()
201
$this->name = self::DEFAULT_STATIC_COLUMN_NAME;
202
}
203
204
- if (empty($this->name)) {
+ if ($this->isNameEmpty()) {
205
throw new InvalidConfigException("The 'name' option is required.");
206
207
@@ -210,6 +210,19 @@ public function init()
210
211
212
213
+ private function isNameEmpty()
214
+ {
215
+ if (empty($this->name)) {
216
+ if ($this->name === 0 || $this->name === '0') {
217
+ return false;
218
+ }
219
+
220
+ return true;
221
222
223
224
225
226
/**
227
* @return bool whether the type of column is hidden input.
228
*/
0 commit comments