N.755 Case log preset by object copier is not correcly displayed in the object creation form (if combined with the copy of the previous log AND if that log has at least one entry). Has never worked.

SVN:trunk[4672]
This commit is contained in:
Romain Quetiez
2017-04-06 18:44:34 +00:00
parent 1528d85f5f
commit 1a66a6491a

View File

@@ -388,8 +388,9 @@ class ormCaseLog {
if (($bEditMode) && (count($aIndex) > 0) && $this->m_bModified)
{
// Don't display the first element, that is still considered as editable
$iPos = $aIndex[0]['separator_length'] + $aIndex[0]['text_length'];
array_shift($aIndex);
$aLastEntry = end($aIndex);
$iPos = $aLastEntry['separator_length'] + $aLastEntry['text_length'];
array_pop($aIndex);
}
for($index=count($aIndex)-1 ; $index >= 0 ; $index--)
{