* Fix the bug of upload file.
This commit is contained in:
@@ -53,6 +53,9 @@ class upload extends wg
|
||||
$this->setProp('exceededCountHint', sprintf($lang->file->errorFileCount, $this->prop('limitCount')));
|
||||
}
|
||||
|
||||
$name = $this->prop('name');
|
||||
if($this->prop('multiple') && strpos($name, '[]') === false) $this->setProp('name', $name . '[]');
|
||||
|
||||
$otherProps = $this->getRestProps();
|
||||
return zui::upload(inherit($this), set('_props', $otherProps));
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@ $fields->field('stage')
|
||||
->multiple();
|
||||
|
||||
$fields->field('scriptFile')
|
||||
->multiple(false)
|
||||
->width('full')
|
||||
->label($lang->testcase->autoScript)
|
||||
->className('autoScript')
|
||||
|
||||
Reference in New Issue
Block a user