- Vorlage widget now add an empty element to the beginning of the drop

down box
- Bugfix message write controller:
	- JS function getVorlageText was missing
	- Wrong URL in form action
This commit is contained in:
bison-paolo
2017-03-13 16:39:38 +01:00
parent 39d63d287a
commit 14aab3dd56
3 changed files with 35 additions and 2 deletions
+6
View File
@@ -10,6 +10,12 @@ class Vorlage_widget extends Widget
if (is_object($result) && $result->error == EXIT_SUCCESS)
{
// Adding an empty element
$emptyVorlage = new stdClass();
$emptyVorlage->vorlage_kurzbz = '-1';
$emptyVorlage->bezeichnung = 'Select a template...';
array_unshift($result->retval, $emptyVorlage);
$data = array("vorlage" => $result->retval);
$this->view("widgets/vorlage", $data);
}