From 7406060d5063fa1ace28974bbe9d20f752043451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 3 Nov 2011 14:00:12 +0000 Subject: [PATCH] Planner -Ressourcenauslastung der Phasen zeigt das zugehoerige Projekt an - Bugfix beim Speichern von Projekten --- content/projekt/projekt.overlay.js.php | 6 ++++-- content/projekt/ressourcenauslastung.php | 2 +- include/ressource.class.php | 8 +++++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/content/projekt/projekt.overlay.js.php b/content/projekt/projekt.overlay.js.php index b020a2ce5..d18a8e6df 100755 --- a/content/projekt/projekt.overlay.js.php +++ b/content/projekt/projekt.overlay.js.php @@ -151,7 +151,8 @@ function onselectProjekt() //Daten den Feldern zuweisen document.getElementById('textbox-projekt-detail-projekt_kurzbz').value=projekt_kurzbz; - document.getElementById('menulist-projekt-detail-oe_kurzbz').value=oe_kurzbz; + //document.getElementById('menulist-projekt-detail-oe_kurzbz').value=oe_kurzbz; + MenulistSelectItemOnValue('menulist-projekt-detail-oe_kurzbz', oe_kurzbz); document.getElementById('textbox-projekt-detail-titel').value=titel; document.getElementById('textbox-projekt-detail-beschreibung').value=beschreibung; document.getElementById('textbox-projekt-detail-nummer').value=nummer; @@ -178,7 +179,8 @@ function saveProjektDetail() //Werte holen projekt_kurzbz = document.getElementById('textbox-projekt-detail-projekt_kurzbz').value; - oe_kurzbz = document.getElementById('menulist-projekt-detail-oe_kurzbz').value; + //oe_kurzbz = document.getElementById('menulist-projekt-detail-oe_kurzbz').value; + oe_kurzbz = MenulistGetSelectedValue('menulist-projekt-detail-oe_kurzbz'); titel = document.getElementById('textbox-projekt-detail-titel').value; beschreibung = document.getElementById('textbox-projekt-detail-beschreibung').value; nummer = document.getElementById('textbox-projekt-detail-nummer').value; diff --git a/content/projekt/ressourcenauslastung.php b/content/projekt/ressourcenauslastung.php index 4bdad1b4d..680ad8ea1 100755 --- a/content/projekt/ressourcenauslastung.php +++ b/content/projekt/ressourcenauslastung.php @@ -115,7 +115,7 @@ foreach($ressource_arr as $bezeichnung) $anzahl++; $phase = new projektphase(); $phase->load($row->projektphase_id); - $title .= $phase->bezeichnung.'('.$row->projektphase_id.'),'; + $title .= $phase->bezeichnung.'('.$phase->projekt_kurzbz.'),'; } } } diff --git a/include/ressource.class.php b/include/ressource.class.php index aa30871d0..56585ef6e 100644 --- a/include/ressource.class.php +++ b/include/ressource.class.php @@ -507,7 +507,13 @@ class ressource extends basis_db $this->result[] = $obj; } - } + } + else + { + $this->errorsmg = 'Fehler beim Laden'; + return false; + } + } } ?> \ No newline at end of file