mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Fehler behoben beim Speichern der Sortierung im Studienplan über Vilesci GUI
This commit is contained in:
@@ -902,7 +902,7 @@ class studienplan extends basis_db
|
||||
* @param type $tudienplan_lehrveranstaltung_id
|
||||
* @param type $sort
|
||||
*/
|
||||
function saveSortierung($studienplan_lehrveranstaltung_id, $sort)
|
||||
function saveSortierung($studienplan_lehrveranstaltung_id = null, $sort = null)
|
||||
{
|
||||
if($studienplan_lehrveranstaltung_id==NULL)
|
||||
$studienplan_lehrveranstaltung_id = $this->studienplan_lehrveranstaltung_id;
|
||||
|
||||
+5
-3
@@ -69,12 +69,13 @@ if(!$wsrecht->isUserAuthorized($uid, $method, $class))
|
||||
$obj = new $class();
|
||||
$error=false;
|
||||
|
||||
|
||||
// Bei Save Funktionen werden alle Parameter zugewiesen
|
||||
if(mb_stristr($method,'save'))
|
||||
{
|
||||
|
||||
$loaddata=json_decode($_REQUEST['loaddata'], true);
|
||||
if(isset($_REQUEST['loaddata']))
|
||||
$loaddata=json_decode($_REQUEST['loaddata'], true);
|
||||
else
|
||||
$loaddata=null;
|
||||
$savedata=json_decode($_REQUEST['savedata'], true);
|
||||
|
||||
if(isset($loaddata['method']))
|
||||
@@ -114,6 +115,7 @@ if(mb_stristr($method,'save'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$return = '';
|
||||
if(!$error && ($return = call_user_func_array(array($obj, $method), $parameter)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user