Replies: 5   Views: 3290
Addcrossreference on wordfragment
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by AndrewCooper  · 17-06-2016 - 08:57

Just for your general information.

In the addBookmark function (line 1084 of the code checks whether the type and name are empty. Problem is that if the name value is "0" (a string zero) the check incorrectly returns a true on the empty(name) check.  

This is an edge case for sure but it did happen for me.