mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 01:42:17 +00:00
- 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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user