mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
2011-07-29 Tomas Palacios <tomas.palacios@artica.es>
* operation/integria_incidents/incident.incident.php: fixed a bug regarding an empty foreach and an undefined variable call. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4651 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
be63cf6054
commit
14ee5f4171
@ -21,26 +21,31 @@ global $result_groups;
|
|||||||
global $result_users;
|
global $result_users;
|
||||||
|
|
||||||
$resolutions[0] = __('None');
|
$resolutions[0] = __('None');
|
||||||
foreach($result_resolutions['resolution'] as $res) {
|
if (isset ($result_resolutions['resolution'])) {
|
||||||
$resolutions[$res['id']] = $res['name'];
|
foreach($result_resolutions['resolution'] as $res) {
|
||||||
|
$resolutions[$res['id']] = $res['name'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
if (isset ($result_status['status'])) {
|
||||||
foreach($result_status['status'] as $st) {
|
foreach($result_status['status'] as $st) {
|
||||||
$status[$st['id']] = $st['name'];
|
$status[$st['id']] = $st['name'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
if (isset ($result_sources['source'])) {
|
||||||
foreach($result_sources['source'] as $src) {
|
foreach($result_sources['source'] as $src) {
|
||||||
$sources[$src['id']] = $src['name'];
|
$sources[$src['id']] = $src['name'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
if (isset ($result_groups['group'])) {
|
||||||
foreach($result_groups['group'] as $gr) {
|
foreach($result_groups['group'] as $gr) {
|
||||||
$groups[$gr['id']] = $gr['name'];
|
$groups[$gr['id']] = $gr['name'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
if (isset ($result_users['id_user'])) {
|
||||||
foreach($result_users['id_user'] as $usr) {
|
foreach($result_users['id_user'] as $usr) {
|
||||||
$users[$usr] = $usr;
|
$users[$usr] = $usr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($result['id_incidencia'])) {
|
if(!isset($result['id_incidencia'])) {
|
||||||
$result['titulo'] = '';
|
$result['titulo'] = '';
|
||||||
$result['sla_disabled'] = 0;
|
$result['sla_disabled'] = 0;
|
||||||
@ -75,8 +80,9 @@ if(isset($result['id_incidencia'])) {
|
|||||||
else {
|
else {
|
||||||
$table->data[1][2] = "";
|
$table->data[1][2] = "";
|
||||||
}
|
}
|
||||||
|
if (isset($groups)){
|
||||||
$table->data[1][0] = "<b>".__('Group')."</b><br/>".html_print_select ($groups, 'group', $result['id_grupo'], '', '', 0, true, false, false);
|
$table->data[1][0] = "<b>".__('Group')."</b><br/>".html_print_select ($groups, 'group', $result['id_grupo'], '', '', 0, true, false, false);
|
||||||
|
}
|
||||||
$table->data[1][1] = "<b>".__('Priority')."</b><br/>".html_print_select (incidents_get_priorities (), 'priority', $result['prioridad'], '', '', 0, true, false, false);
|
$table->data[1][1] = "<b>".__('Priority')."</b><br/>".html_print_select (incidents_get_priorities (), 'priority', $result['prioridad'], '', '', 0, true, false, false);
|
||||||
$table->data[1][2] = "<b>".__('Creator')."</b><br/>".$result['id_creator'];
|
$table->data[1][2] = "<b>".__('Creator')."</b><br/>".$result['id_creator'];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user