Ref: Implemented - Change the Trigger for Auto Creating Associated Discussion Thread when Saving as Draft or Scheduled
I don't see a CAS release thread for this, so wonder if it has made it to current 2.2.35 CAS release?
I ask because today I had a CAS Ad go into the Approval Queue, and it's auto discussion thread is in a [deleted] state until the Ad is approved from the Approval Queue. All good to this point.
Before approving the Ad from within the Approval Queue, I edited it first to change it's title (from "For Sale Bargain[...]" to "Kawasaki Z900R"). Then came back to the Approval Queue and approved it. The Ad and it's Auto Discussion thread title were automatically changed/updated prior to publishing/approving from the Approval Queue. Still all good to this point.
When the auto discussion thread was created, it's first post content via the xa_cas_ad_thread_create phrase - specifically it's use of the {title} placeholder, still used the original title and not the edited/current title when it was approved/published from the Approval Queue.
... Ad title, after edit when within the Approval Queue and approval/published from the Approval Queue
... Auto Discussion Thread 1st Post with the hyperlinked {title} from the Phrase having used the original/pre-edited title when still in the Approval Queue.
xa_cas_ad_thread_create phrase text ...
If the related/source code change for the triggering of the auto discussion thread hasn't yet made it into CAS, then likely that's all thats needed to correct the phrase's title usage? Or perhaps this should be a bug thread because the phrase's {title} usage is still an issue even after the related/source code change?
Edit/Added: {ad_link} in the phrase is also impacted, using the pre-edited title for the URL generation in the post content. URL still works because of XF core functionality of using/redirecting to the item ID instead of the full URL. But, {ad_link} within the phrase should probably also use the title when published.
Note: This is a change that I am making in ALL of my addons that have Save as Draft and Scheduled Publishing.
I don't see a CAS release thread for this, so wonder if it has made it to current 2.2.35 CAS release?
I ask because today I had a CAS Ad go into the Approval Queue, and it's auto discussion thread is in a [deleted] state until the Ad is approved from the Approval Queue. All good to this point.
Before approving the Ad from within the Approval Queue, I edited it first to change it's title (from "For Sale Bargain[...]" to "Kawasaki Z900R"). Then came back to the Approval Queue and approved it. The Ad and it's Auto Discussion thread title were automatically changed/updated prior to publishing/approving from the Approval Queue. Still all good to this point.
When the auto discussion thread was created, it's first post content via the xa_cas_ad_thread_create phrase - specifically it's use of the {title} placeholder, still used the original title and not the edited/current title when it was approved/published from the Approval Queue.
... Ad title, after edit when within the Approval Queue and approval/published from the Approval Queue
... Auto Discussion Thread 1st Post with the hyperlinked {title} from the Phrase having used the original/pre-edited title when still in the Approval Queue.
xa_cas_ad_thread_create phrase text ...
Code:
What do you think of [url={ad_link}][plain]{title}[/plain][/url]? Please discuss below.
[...]
If the related/source code change for the triggering of the auto discussion thread hasn't yet made it into CAS, then likely that's all thats needed to correct the phrase's title usage? Or perhaps this should be a bug thread because the phrase's {title} usage is still an issue even after the related/source code change?
Edit/Added: {ad_link} in the phrase is also impacted, using the pre-edited title for the URL generation in the post content. URL still works because of XF core functionality of using/redirecting to the item ID instead of the full URL. But, {ad_link} within the phrase should probably also use the title when published.
Last edited: