You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cloned imagefield ${IMAGE:10cmx15cm} should return like ${IMAGE#1:10cmx15cm}
Current Behavior
Its returned like ${IMAGE:10cmx15cm#1}
Failure Information
I changed the RegularExpression in indexClonedVariables() for fixing this behaviour. It works for my purpose, but I didnt checked further: $results[] = preg_replace('/\$\{(.*?)(:([^}])*)?\}/', '\${\\1#' . $i . '\\2}', $xmlBlock);
Using the setImageValue() with image dimensions inside search pattern like ${IMAGE:10cmx15xm} inside a cloned block with indexed values where resulting in ${IMAGE:10cmx15cm#1}. This change in the RegularExpresion of the indexClonedVariables() is changing it to ${IMAGE#1:10cmx15cm} instead.
getVariables() will still return the whole pattern, "IMAGE#1:10cmx15cm", maybe it should also be updated to just return the raw field name "IMAGE#1".
If an image field like `${IMAGE:10cmx15cm}` gets cloned it returns now `${IMAGE#1:10cmx15cm}` instead of `${IMAGE:10cmx15cm#1} and therefore wouldn't break the image field anymore.
ClosesPHPOffice#1624
This is:
Expected Behavior
The cloned imagefield ${IMAGE:10cmx15cm} should return like ${IMAGE#1:10cmx15cm}
Current Behavior
Its returned like ${IMAGE:10cmx15cm#1}
Failure Information
I changed the RegularExpression in indexClonedVariables() for fixing this behaviour. It works for my purpose, but I didnt checked further:
$results[] = preg_replace('/\$\{(.*?)(:([^}])*)?\}/', '\${\\1#' . $i . '\\2}', $xmlBlock);
6a51165
Context
The text was updated successfully, but these errors were encountered: