Merge remote-tracking branch 'origin/dev'

This commit is contained in:
Фёдор Подлеснов 2018-02-06 15:28:41 +03:00
commit 080733b2eb

View file

@ -32,10 +32,10 @@ class Form_OptionFactory {
list($key, $value) = explode(",", $keyvalue); list($key, $value) = explode(",", $keyvalue);
try { try {
$query_result = $this->db->executeQuery("SELECT * FROM $table"); $query_result = $this->db->executeQuery("SELECT * FROM $table");
} catch(Exception $ex) {
$query_result = [];
}
$field->options = $this->optionsDB($key, $value, $query_result); $field->options = $this->optionsDB($key, $value, $query_result);
} catch(Exception $ex) {
$field->options = [];
}
} elseif (isset($input['options.pair'])) { } elseif (isset($input['options.pair'])) {
$field->options = $this->optionsPair($input['options.pair']); $field->options = $this->optionsPair($input['options.pair']);
} elseif (isset($input['options.model'])) { } elseif (isset($input['options.model'])) {