Fix unable to merge from listview into document that has {{pagerepeat}}

This commit is contained in:
Nathan Gray 2015-11-24 22:42:46 +00:00
parent c4752fa83a
commit af42a71332

View File

@ -118,7 +118,7 @@ class calendar_merge extends bo_merge
function merge_string($content,$ids,$err,$mimetype,$fix)
{
// Handle merging a list of events into a document with range instead of pagerepeat
if(strpos($content, '$$pagerepeat') === false && count($ids) > 1)
if(strpos($content, '$$pagerepeat') === false && strpos($content, '{{pagerepeat') === false && count($ids) > 1)
{
// Merging more than one something will fail without pagerepeat
if (is_array($ids) && $ids[0]['id'])