Needs review
Project:
Nodequeue
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2012 at 06:00 UTC
Updated:
27 Nov 2016 at 20:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jweowu commentedComment #2
jweowu commentedDealing with side-effects of ignoring the invalid terms.
Comment #3
tripper54 commentedSeems to work OK for me. I was getting this error after deleting a term.
Comment #4
fizk commentedAfter applying this patch and removing a term, adding more terms, etc., I saw multiple subqueues named "6" (I'm assuming this was the old term ID for the term "three"). After adding the removed term, I saw the "6" subqueue be replaced by "three". These behaviours don't seem stable, so I think this needs more work.
Comment #5
jweowu commentedWhat do you think the title should be in the situation where the term doesn't exist?
I think it's useful to include
$referencein the output in some way, as it provides some kind of identification.Perhaps something along the lines of
sprintf("Invalid term reference: %s", $reference)?Comment #6
jenlamptonHere's a reroll of the patch, slightly different approach.
Comment #7
jweowu commentedRegression from the previous patch: You're assuming that the taxonomy_term_load returned an object.