diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php
index 789d838bc..cfc45f732 100755
--- a/gulliver/system/class.xmlform.php
+++ b/gulliver/system/class.xmlform.php
@@ -2198,15 +2198,24 @@ class XmlForm_Field_File extends XmlForm_Field {
if($this->mode == 'view'){
$displayStyle = 'display:none;';
$html = $value.'';
- }else{
+ }
+ else{
$html = 'name . ']" name="form[' . $this->name . ']" type=\'file\' value=\'' . $value . '\'/>';
}
- if( isset($this->input) && $this->input != ''){
+
+ if( isset($this->input) && $this->input != '') {
require_once 'classes/model/InputDocument.php';
$oiDoc = new InputDocument;
- $aDoc = $oiDoc->load($this->input);
- $aDoc['INP_DOC_TITLE'] = isset($aDoc['INP_DOC_TITLE'])? $aDoc['INP_DOC_TITLE']: '';
- $html .= '';
+
+ try {
+ $aDoc = $oiDoc->load($this->input);
+ $aDoc['INP_DOC_TITLE'] = isset($aDoc['INP_DOC_TITLE'])? $aDoc['INP_DOC_TITLE']: '';
+ $html .= '';
+ }
+ catch (Exception $e) {
+ // then the input document doesn't exits, id referencial broken
+ $html .= '
('.G::loadTranslation('ID_INPUT_DOC_DOESNT_EXIST').')';
+ }
}
$html .= $this->renderHint();
return $html;
diff --git a/workflow/public_html/images/alert_icon.gif b/workflow/public_html/images/alert_icon.gif
index f0e5535ed..c67de3e24 100755
Binary files a/workflow/public_html/images/alert_icon.gif and b/workflow/public_html/images/alert_icon.gif differ