margin-left: 3px;
}
-.warning_msg, .warning {
+.warning_msg, .warning, .tips {
border-width: 1px;
border-style: solid;
background-color: #ffd297; /* orange */
<?php
+/**
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
//
// FORM TO ADD CANNED RESPONSES
//
<?php
+/**
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+
//
// FORM TO BUILD SELECTION BOXES
//
<?php
+/**
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
//
// FORM TO ADD ELEMENTS TO EXTRA FIELD
$boxid = getIntFromRequest('boxid');
$ac = new ArtifactExtraField($ath,$boxid);
if (!$ac || !is_object($ac)) {
- exit_error('Error','Unable to create ArtifactExtraField Object');
+ exit_error(_('Unable to create ArtifactExtraField Object'),'tracker');
} elseif ($ac->isError()) {
- exit_error('Error',$ac->getErrorMessage());
+ exit_error($ac->getErrorMessage(),'tracker');
} else {
$efearr=$ath->getExtraFieldElements($boxid);
$title = sprintf(_('Add/Update Custom Field Elements in %s'), $ath->getName());
<?php
+/**
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
$ath->adminHeader(array ('title'=>sprintf(_('Delete a custom field for %s'),$ath->getName())));
<?php
+/**
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+
//
// FORM TO DELETE POP-UP CHOICES FOR A BOX
//
$boxid = getIntFromRequest('boxid');
$ac = new ArtifactExtraField($ath,$boxid);
if (!$ac || !is_object($ac)) {
- exit_error('Error','Unable to create ArtifactExtraField Object');
+ exit_error(_('Unable to create ArtifactExtraField Object'),'tracker');
} elseif ($ac->isError()) {
- exit_error('Error',$ac->getErrorMessage());
+ exit_error($ac->getErrorMessage(),'tracker');
} else {
$id = getStringFromRequest('id');
$ao = new ArtifactExtraFieldElement($ac,$id);
if (!$ao || !is_object($ao)) {
- exit_error('Error','Unable to create ArtifactExtraFieldElement Object');
+ exit_error(_('Unable to create ArtifactExtraFieldElement Object'),'tracker');
} elseif ($ao->isError()) {
- exit_error('Error',$ao->getErrorMessage());
+ exit_error($ao->getErrorMessage(),'tracker');
} else {
$title = sprintf(_('Remove a custom field element in %s'), $ath->getName()) ;
$ath->adminHeader(array('title'=>$title));
<?php
+/*
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
$ath->adminHeader(array ('title'=>sprintf(_('Delete tracker %s'), $ath->getName())));
<?php
+/*
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
//
// FORM TO COPY Choices configured by admin for extra_field BOXES
user_getid(),
$id));
if (db_numrows($res) < 1) {
- exit_error('Cannot find a destination tracker where you have administration rights.');
+ exit_error(_('Cannot find a destination tracker where you have administration rights.'),'tracker');
}
$title = sprintf(_('Copy choices from custom field %1$s'), $fb->getName());
<?php
+/*
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+
//
// FORM TO UPDATE CANNED MESSAGES
//
//
// FORM TO UPDATE POP-UP BOXES
//
- /*
- Allow modification of a artifact Selection Box
- */
+/*
+ Allow modification of a artifact Selection Box
+*/
$title = sprintf(_('Modify a custom field in %s'),$ath->getName());
$ath->adminHeader(array('title'=>$title));
echo '<h1>'.$title.'</h1>';
- $id = getStringFromRequest('id');
- $ac = new ArtifactExtraField($ath,$id);
- if (!$ac || !is_object($ac)) {
- $feedback .= 'Unable to create ArtifactExtraField Object';
- } elseif ($ac->isError()) {
- $feedback .= $ac->getErrorMessage();
- } else {
- ?>
- <p>
- <strong><?php echo _('Type of custom field').': '.$ac->getTypeName(); ?></strong></p>
-
- <form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&id='.$id.'&atid='.$ath->getID(); ?>" method="post">
- <input type="hidden" name="update_box" value="y" />
- <input type="hidden" name="id" value="<?php echo $ac->getID(); ?>" />
- <p>
- <strong><?php echo _('Custom Field Name') ?>:</strong><br />
- <input type="text" name="name" value="<?php echo $ac->getName(); ?>" /></p>
- <p>
+$id = getStringFromRequest('id');
+$ac = new ArtifactExtraField($ath,$id);
+if (!$ac || !is_object($ac)) {
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
+} elseif ($ac->isError()) {
+ $error_msg .= $ac->getErrorMessage();
+} else {
+?>
+<p>
+<strong><?php echo _('Type of custom field').': '.$ac->getTypeName(); ?></strong></p>
+
+<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&id='.$id.'&atid='.$ath->getID(); ?>" method="post">
+ <input type="hidden" name="update_box" value="y" />
+ <input type="hidden" name="id" value="<?php echo $ac->getID(); ?>" />
+ <p>
+ <strong><?php echo _('Custom Field Name') ?>:</strong><br />
+ <input type="text" name="name" value="<?php echo $ac->getName(); ?>" />
+ </p>
+ <p>
<?php if ($ac->getType() == ARTIFACT_EXTRAFIELDTYPE_TEXTAREA) { ?>
- <b><?php echo _('Text Area Rows'); ?></b><br />
- <input type="text" name="attribute1" value="<?php echo $ac->getAttribute1(); ?>" size="2" maxlength="2" />
- </p><p>
- <b><?php echo _('Text Area Columns'); ?></b><br />
- <input type="text" name="attribute2" value="<?php echo $ac->getAttribute2(); ?>" size="2" maxlength="2" />
+ <b><?php echo _('Text Area Rows'); ?></b><br />
+ <input type="text" name="attribute1" value="<?php echo $ac->getAttribute1(); ?>" size="2" maxlength="2" />
+ </p>
+ <p>
+ <b><?php echo _('Text Area Columns'); ?></b><br />
+ <input type="text" name="attribute2" value="<?php echo $ac->getAttribute2(); ?>" size="2" maxlength="2" />
<?php } elseif ($ac->getType() == ARTIFACT_EXTRAFIELDTYPE_TEXT || $ac->getType() == ARTIFACT_EXTRAFIELDTYPE_RELATION) {?>
- <b><?php echo _('Text Field Size'); ?></b><br />
- <input type="text" name="attribute1" value="<?php echo $ac->getAttribute1(); ?>" size="2" maxlength="2" />
- </p><p>
- <b><?php echo _('Text Field Maxlength'); ?></b><br />
- <input type="text" name="attribute2" value="<?php echo $ac->getAttribute2(); ?>" size="2" maxlength="2" />
+ <b><?php echo _('Text Field Size'); ?></b><br />
+ <input type="text" name="attribute1" value="<?php echo $ac->getAttribute1(); ?>" size="2" maxlength="2" />
+ </p>
+ <p>
+ <b><?php echo _('Text Field Maxlength'); ?></b><br />
+ <input type="text" name="attribute2" value="<?php echo $ac->getAttribute2(); ?>" size="2" maxlength="2" />
<?php } else { ?>
- <input type="hidden" name="attribute1" value="0" />
- <input type="hidden" name="attribute2" value="0" />
+ <input type="hidden" name="attribute1" value="0" />
+ <input type="hidden" name="attribute2" value="0" />
<?php } ?>
- </p>
- <p>
- <strong><?php echo _('Field alias') ?>:</strong><br />
- <input type="text" name="alias" value="<?php echo $ac->getAlias(); ?>" />
- </p>
- <p><input type="checkbox" name="is_required" <?php if ($ac->isRequired()) echo "checked=\"checked\""; ?> /><?php echo _('Field is mandatory')?></p>
- <div class="warning"><?php echo _('It is not recommended that you change the custom field name because other things are dependent upon it. When you change the custom field name, all related items will be changed to the new name') ?>
- </div>
- <p>
- <input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" /></p>
- </form>
- <?php
- }
+ </p>
+ <p>
+ <strong><?php echo _('Field alias') ?>:</strong><br />
+ <input type="text" name="alias" value="<?php echo $ac->getAlias(); ?>" />
+ </p>
+ <p><input type="checkbox" name="is_required" <?php if ($ac->isRequired()) echo "checked=\"checked\""; ?> /><?php echo _('Field is mandatory')?></p>
+ <div class="warning"><?php echo _('It is not recommended that you change the custom field name because other things are dependent upon it. When you change the custom field name, all related items will be changed to the new name') ?>
+ </div>
+ <p>
+ <input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" />
+ </p>
+</form>
+<?php
+}
- $ath->footer(array());
+$ath->footer(array());
// Local Variables:
// mode: php
<?php
+/**
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
//
// FORM TO UPDATE POP-UP CHOICES FOR A BOX
//
- /*
- Allow modification of a Choice for a Pop-up Box
- */
- $boxid = getIntFromRequest('boxid');
- $ac = new ArtifactExtraField($ath,$boxid);
- if (!$ac || !is_object($ac)) {
- exit_error('Error','Unable to create ArtifactExtraField Object');
- } elseif ($ac->isError()) {
- exit_error('Error',$ac->getErrorMessage());
+/*
+ Allow modification of a Choice for a Pop-up Box
+*/
+$boxid = getIntFromRequest('boxid');
+$ac = new ArtifactExtraField($ath,$boxid);
+if (!$ac || !is_object($ac)) {
+ exit_error(_('Unable to create ArtifactExtraField Object'),'tracker');
+} elseif ($ac->isError()) {
+ exit_error($ac->getErrorMessage(),'tracker');
+} else {
+ $id = getStringFromRequest('id');
+ $ao = new ArtifactExtraFieldElement($ac,$id);
+ if (!$ao || !is_object($ao)) {
+ exit_error(_('Unable to create ArtifactExtraFieldElement Object'),'tracker');
+ } elseif ($ao->isError()) {
+ exit_error($ao->getErrorMessage(),'tracker');
} else {
- $id = getStringFromRequest('id');
- $ao = new ArtifactExtraFieldElement($ac,$id);
- if (!$ao || !is_object($ao)) {
- exit_error('Error','Unable to create ArtifactExtraFieldElement Object');
- } elseif ($ao->isError()) {
- exit_error('Error',$ao->getErrorMessage());
- } else {
- $title = sprintf(_('Modify a custom field element in %s'), $ath->getName()) ;
- $ath->adminHeader(array('title'=>$title));
+ $title = sprintf(_('Modify a custom field element in %s'), $ath->getName()) ;
+ $ath->adminHeader(array('title'=>$title));
- echo '
- <h2>'.$title.'</h2>';
+ echo '
+ <h2>'.$title.'</h2>';
- ?>
+?>
<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&atid='.$ath->getID(); ?>" method="post">
<input type="hidden" name="update_opt" value="y" />
<input type="hidden" name="id" value="<?php echo $ao->getID(); ?>" />
</form>
<?php
$ath->footer(array());
- }
}
+}
// Local Variables:
// mode: php
<?php
+/*
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
//
// FORM TO UPDATE ARTIFACT TYPES
//
<?php
+/*
+ * Tracker Facility
+ *
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
$title = sprintf(_('Add/Update template for %s'), $ath->getName()) ;
<?php
-
/**
- * FusionForge Update Artifact Type Form
+ * Update Artifact Type Form
*
* Copyright 2010, FusionForge Team
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
} elseif (count($efarr) !== 1) {
// Internal error.
$has_error = true;
- $error_msg .= 'Internal error: Illegal number of status fields (WKFL01).';
+ $error_msg .= _('Internal error: Illegal number of status fields (WKFL01).');
}
$ath->adminHeader(array ('title'=> _('Configure workflow'),'pagename'=>'tracker_admin_customize_liste','titlevals'=>array($ath->getName())));
<?php
+/**
+ * Workflow Form
+ *
+ * Copyright 2010, FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
require_once('common/tracker/ArtifactWorkflow.class.php');
}
// If no more tracker now,
if ($i==0 && $j>0) {
- exit_permission_denied();
+ exit_permission_denied('','tracker');
}
//required params for site_project_header();
$params['title'] = '';
}
-echo site_project_header($params);
+site_project_header($params);
echo $HTML->subMenu(
array(
_('Report'),
<?php
}
- echo site_project_footer(array());
+site_project_footer(array());
// Local Variables:
// mode: php
<?php
+/**
+ * Tracker Links
+ *
+ * Copyright 2010, FusionForge Team
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
//
// SHOW LINKS TO FUNCTIONS
//
* Tracker Facility
*
* Copyright 2010 (c) FusionForge Team
+ * Copyright 2010 (c) Franck Villaume - Capgemini
* http://fusionforge.org
*
* This file is part of FusionForge. FusionForge is free software;
// $feedback .= $ab->getErrorMessage();
} else {
if (!$ab->create($name,$field_type,$attribute1,$attribute2,$is_required,$alias)) {
- $feedback .= _('Error inserting a custom field').': '.$ab->getErrorMessage();
+ $error_msg .= _('Error inserting a custom field').': '.$ab->getErrorMessage();
$ab->clearError();
} else {
$feedback .= _('Extra field inserted');
$ab = new ArtifactExtraField($ath,$id);
if (!$ab || !is_object($ab)) {
- $feedback .= _('Unable to create ArtifactExtraField Object');
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
} elseif ($ab->isError()) {
- $feedback .= $ab->getErrorMessage();
+ $error_msg .= $ab->getErrorMessage();
} else {
$sure = getStringFromRequest('sure');
$really_sure = getStringFromRequest('really_sure');
if (!$ab->delete($sure,$really_sure)) {
- $feedback .= $ab->getErrorMessage();
+ $error_msg .= $ab->getErrorMessage();
} else {
$browse_list = $ath->getBrowseList();
$arr = explode(',', $browse_list);
$ath->setBrowseList(join(',', $arr));
$feedback .= _('Custom Field Deleted');
$deleteextrafield=false;
- header ("Location: /tracker/admin/?group_id=${group_id}&atid=$atid&add_extrafield=1&feedback=".urlencode($feedback));
- exit;
+ session_redirect('/tracker/admin/?group_id='.$group_id.'&atid='.$atid.'&add_extrafield=1&feedback='.urlencode($feedback));
}
}
$boxid = getStringFromRequest('boxid');
$ab = new ArtifactExtraField($ath,$boxid);
if (!$ab || !is_object($ab)) {
- $feedback .= _('Unable to create ArtifactExtraField Object');
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
} elseif ($ab->isError()) {
- $feedback .= $ab->getErrorMessage();
+ $error_msg .= $ab->getErrorMessage();
} else {
$ao = new ArtifactExtraFieldElement($ab);
if (!$ao || !is_object($ao)) {
- $feedback .= 'Unable to create ArtifactExtraFieldElement Object';
+ $error_msg .= 'Unable to create ArtifactExtraFieldElement Object';
// } elseif ($ao->isError())
// $feedback .= $ao->getErrorMessage();
} else {
$name = getStringFromRequest('name');
$status_id = getIntFromRequest('status_id');
if (!$ao->create($name,$status_id)) {
- $feedback .= _('Error inserting an element').': '.$ao->getErrorMessage();
+ $error_msg .= _('Error inserting an element').': '.$ao->getErrorMessage();
$ao->clearError();
} else {
$feedback .= _('Element inserted');
$acr = new ArtifactCanned($ath);
if (!$acr || !is_object($acr)) {
- $feedback .= _('Unable to create ArtifactCanned Object');
+ $error_msg .= _('Unable to create ArtifactCanned Object');
// } elseif ($acr->isError()) {
// $feedback .= $acr->getErrorMessage();
} else {
if (!$acr->create($title,$body)) {
- $feedback .= _('Error inserting').' : '.$acr->getErrorMessage();
+ $error_msg .= _('Error inserting').' : '.$acr->getErrorMessage();
$acr->clearError();
} else {
$feedback .= _('Canned Response Inserted');
$acr = new ArtifactCanned($ath,$id);
if (!$acr || !is_object($acr)) {
- $feedback .= _('Unable to create ArtifactCanned Object');
+ $error_msg .= _('Unable to create ArtifactCanned Object');
} elseif ($acr->isError()) {
- $feedback .= $acr->getErrorMessage();
+ $error_msg .= $acr->getErrorMessage();
} else {
if (!$acr->update($title,$body)) {
- $feedback .= _('Error updating').' : '.$acr->getErrorMessage();
+ $error_msg .= _('Error updating').' : '.$acr->getErrorMessage();
$acr->clearError();
} else {
$feedback .= _('Canned Response Updated');
$typeid = db_result($result,0,'group_artifact_id');
$dest_tracker =& artifactType_get_object($typeid);
if (!$dest_tracker || !is_object($dest_tracker)) {
- exit_error('Error', _('ArtifactType could not be created'));
+ exit_error(_('ArtifactType could not be created'),'tracker');
} elseif ($dest_tracker->isError()) {
- exit_error(_('Error'),$dest_tracker->getErrorMessage());
+ exit_error($dest_tracker->getErrorMessage(),'tracker');
}
//
// Copy elements into a field (box) for each tracker selected
$feedback .= $dest_tracker->getName();
$aef =new ArtifactExtraField($dest_tracker,$selectid);
if (!$aef || !is_object($aef)) {
- $feedback .= _('Unable to create ArtifactExtraField Object');
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
} elseif ($aef->isError()) {
- $feedback .= $aefe->getErrorMessage();
+ $error_msg .= $aefe->getErrorMessage();
} else {
$feedback .= ', Box: ';
$feedback .= $aef->getName();
for ($k=0; $k < $copy_rows; $k++) {
$aefe = new ArtifactExtraFieldElement($aef);
if (!$aefe || !is_object($aefe)) {
- $feedback .= 'Unable to create ArtifactExtraFieldElement Object';
+ $error_msg .= 'Unable to create ArtifactExtraFieldElement Object';
} elseif ($aefe->isError()) {
- $feedback .= $aefe->getErrorMessage();
+ $error_msg .= $aefe->getErrorMessage();
} else {
$name=$ath->getElementName($copyid[$k]);
$status=$ath->getElementStatusID($copyid[$k]);
if (!$aefe->create($name,$status)) {
- $feedback .= _('Error inserting an element').': '.$aefe->getErrorMessage();
+ $error_msg .= _('Error inserting an element').': '.$aefe->getErrorMessage();
$aefe->clearError();
} else {
$feedback .= '- Copied choice:'. $name;
$ac = new ArtifactExtraField($ath,$id);
if (!$ac || !is_object($ac)) {
- $feedback .= _('Unable to create ArtifactExtraField Object');
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
} elseif ($ac->isError()) {
- $feedback .= $ac->getErrorMessage();
+ $error_msg .= $ac->getErrorMessage();
} else {
if (!$ac->update($name,$attribute1,$attribute2,$is_required,$alias)) {
- $feedback .= _('Error updating a custom field').' : '.$ac->getErrorMessage();
+ $error_msg .= _('Error updating a custom field').' : '.$ac->getErrorMessage();
$ac->clearError();
} else {
$feedback .= _('Custom Field updated');
$ac = new ArtifactExtraField($ath,$boxid);
if (!$ac || !is_object($ac)) {
- $feedback .= _('Unable to create ArtifactExtraField Object');
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
} elseif ($ac->isError()) {
- $feedback .= $ac->getErrorMessage();
+ $error_msg .= $ac->getErrorMessage();
} else {
$ao = new ArtifactExtraFieldElement($ac,$id);
if (!$ao || !is_object($ao)) {
- $feedback .= _('Unable to create ArtifactExtraFieldElement Object');
+ $error_msg .= _('Unable to create ArtifactExtraFieldElement Object');
} elseif ($ao->isError()) {
- $feedback .= $ao->getErrorMessage();
+ $error_msg .= $ao->getErrorMessage();
} else {
$name = getStringFromRequest('name');
$status_id = getIntFromRequest('status_id');
if (!$ao->update($name,$status_id)) {
- $feedback .= _('Error updating a custom field').' : '.$ao->getErrorMessage();
+ $error_msg .= _('Error updating a custom field').' : '.$ao->getErrorMessage();
$ao->clearError();
} else {
$feedback .= _('Element updated');
$clone_id = getStringFromRequest('clone_id');
if (!$clone_id) {
- exit_missing_param();
+ exit_missing_param('',array(_('Clone ID')),'tracker');
}
if (!$ath->cloneFieldsFrom($clone_id)) {
- exit_error('Error','Error cloning fields: '.$ath->getErrorMessage());
+ exit_error(_('Error cloning fields: ').$ath->getErrorMessage(),'tracker');
} else {
$feedback .= _('Successfully Cloned Tracker Fields ');
$next = '*main*';
if (!$ath->update($name,$description,$email_all,$email_address,
$due_period,$status_timeout,$use_resolution,$submit_instructions,$browse_instructions)) {
- $feedback .= _('Error updating').' : '.$ath->getErrorMessage();
+ $error_msg .= _('Error updating').' : '.$ath->getErrorMessage();
$ath->clearError();
} else {
$feedback .= _('Tracker Updated');
}
$browse_fields = join(',', $browse_fields);
if (!$ath->setBrowseList($browse_fields)) {
- $feedback .= _('Error updating').' : '.$ath->getErrorMessage();
+ $error_msg .= _('Error updating').' : '.$ath->getErrorMessage();
$ath->clearError();
} else {
$feedback .= _('Tracker Updated');
$really_sure = getStringFromRequest('really_sure');
if (!$ath->delete($sure,$really_sure)) {
- $feedback .= _('Error updating').' : '.$ath->getErrorMessage();
+ $error_msg .= _('Error updating').' : '.$ath->getErrorMessage();
} else {
- header ("Location: /tracker/admin/?group_id=${group_id}&tracker_deleted=1");
- exit;
+ session_redirect('/tracker/admin/?group_id='.$group_id.'&tracker_deleted=1');
}
//
$new_pos = getStringFromRequest('new_pos');
$ac = new ArtifactExtraField($ath,$boxid);
if (!$ac || !is_object($ac)) {
- $feedback .= _('Unable to create ArtifactExtraField Object');
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
} elseif ($ac->isError()) {
- $feedback .= $ac->getErrorMessage();
+ $error_msg .= $ac->getErrorMessage();
} else {
if (!$ac->reorderValues($id, $new_pos)) {
- $feedback .= _('Error updating a custom field').' : '.$ac->getErrorMessage();
+ $error_msg .= _('Error updating a custom field').' : '.$ac->getErrorMessage();
$ac->clearError();
} else {
$feedback .= _('Tracker Updated');
$order = getArrayFromRequest('order');
$ac = new ArtifactExtraField($ath,$boxid);
if (!$ac || !is_object($ac)) {
- $feedback .= 'Unable to create ArtifactExtraField Object';
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
} elseif ($ac->isError()) {
- $feedback .= $ac->getErrorMessage();
+ $error_msg .= $ac->getErrorMessage();
} else {
$updated_flag = 0;
foreach ($order as $id => $new_pos) {
if ($new_pos == '') continue;
if (!$ac->reorderValues($id, $new_pos)) {
- $feedback .= _('Error updating a custom field').' : '.$ac->getErrorMessage();
+ $error_msg .= _('Error updating a custom field').' : '.$ac->getErrorMessage();
$ac->clearError();
continue;
}
$boxid = getStringFromRequest('boxid');
$ac = new ArtifactExtraField($ath,$boxid);
if (!$ac || !is_object($ac)) {
- $feedback .= 'Unable to create ArtifactExtraField Object';
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
} elseif ($ac->isError()) {
- $feedback .= $ac->getErrorMessage();
+ $error_msg .= $ac->getErrorMessage();
} else {
if (!$ac->alphaorderValues($id)) {
- $feedback .= _('Error updating a custom field').' : '.$ac->getErrorMessage();
+ $error_msg .= _('Error updating a custom field').' : '.$ac->getErrorMessage();
$ac->clearError();
} else {
$feedback .= _('Tracker Updated');
$atw = new ArtifactWorkflow($ath, $field_id);
if (!isset($wk[100])) {
- $feedback .= _('ERROR: Initial values not saved, no initial state given.').'<br />';
+ $error_msg .= _('ERROR: Initial values not saved, no initial state given.').'<br />';
} else {
// Save values for the submit form (from=100).
$atw->saveNextNodes('100', array_keys($wk[100]));
$boxid = getStringFromRequest('boxid');
$ab = new ArtifactExtraField($ath,$boxid);
if (!$ab || !is_object($ab)) {
- $feedback .= 'Unable to create ArtifactExtraField Object';
+ $error_msg .= _('Unable to create ArtifactExtraField Object');
} elseif ($ab->isError()) {
- $feedback .= $ab->getErrorMessage();
+ $error_msg .= $ab->getErrorMessage();
} else {
$ao = new ArtifactExtraFieldElement($ab,$id);
if (!$ao || !is_object($ao)) {
- $feedback .= 'Unable to create ArtifactExtraFieldElement Object';
+ $error_msg .= _('Unable to create ArtifactExtraFieldElement Object');
} else {
if (!$sure || !$really_sure || !$ao->delete()) {
- $feedback .= _('Error deleting an element').': '.$ao->getErrorMessage();
+ $error_msg .= _('Error deleting an element').': '.$ao->getErrorMessage();
$ao->clearError();
} else {
$feedback .= _('Element deleted');
} else {
$aq = new ArtifactQuery($ath,$query_id);
if (!$aq || !is_object($aq)) {
- exit_error('Error',$aq->getErrorMessage());
+ exit_error($aq->getErrorMessage(),'tracker');
}
$aq->makeDefault();
}
$af = new ArtifactFactory($ath);
if (!$af || !is_object($af)) {
- exit_error('Error','Could Not Get Factory');
+ exit_error(_('Could Not Get Factory'),'tracker');
} elseif ($af->isError()) {
- exit_error('Error',$af->getErrorMessage());
+ exit_error($af->getErrorMessage(),'tracker');
}
if (!isset($_sort_col)) {
$art_arr =& $af->getArtifacts();
if (!$art_arr && $af->isError()) {
- exit_error('Error',$af->getErrorMessage());
+ exit_error($af->getErrorMessage(),'tracker');
}
//build page title to make bookmarking easier