• Resolved aroberts77

    (@aroberts77)


    Hi Peter,

    I have found some strange and inconsistent behaviour with dynamic hyperlinks that are not working in Publications. I’ve narrowed it down to a problem that happens if the column being substituted (ie between the ‘$$’s) is not itself included in the list of columns for publication, but is a substring of another column that IS included (or a column that has been picked up earlier in the hyperlink definition, or in an earlier hyperlink even). If this is the case, the substitution is not evaluated, and the value appears as $$<column_name>$$ in the publication. Does this make sense?!!! (I can create an example if not).

    To check (or discount) my theory, I had a brief look at your code, and adding commas around the stripos elements on line 1317 of WPDA_Data_Tables.php fixed it for me.

    I’ve only been playing with WP Data Access for a couple of days, so still working my way around. All good so far, in fact more than good!

    Thanks for your help.

    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Andy,

    Thank you for taking the time to report this issue! And thanks for your solution! 😊 I will fix this with the next update and let you know when it is released.

    Best regards,
    Peter

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Andy,

    Version 5.0.2 was released today and contains a fix for the issue you reported. Please update to install the fix.

    Thanks again,
    Peter

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Dynamic Hyperlink Strange Behaviour’ is closed to new replies.