
david at kineticode
Oct 28, 2008, 4:28 PM
Post #2 of 4
(1233 views)
Permalink
|
|
Re: Weird Publish Error - Undefined Desk in Desk.pm
[In reply to]
|
|
On Oct 28, 2008, at 12:50, Matt Rolf wrote: > if ($rel->get_workflow_id) { > # It must be on a publish desk. > my $did = $rel->get_desk_id; > my $desk = $desks{$did} > ||= Bric::Biz::Workflow::Parts::Desk- > >lookup({ > id => $did, > }); > unless ($desk->can_publish) { > > Line 258 is the last one, with $desk being undefined. Hrm. I wonder what was in $did? > The problem disappeared later after the story was checked out of the > workflow and checked back in. It had also seemed to prevent other > stories from being published. Oh now that *is* weird. > Until that time, everything was kosher in the workflow, stories, and > desk fields. Didn't look at story_instance or anything else. I'm betting that $did was 0 or undefined. The question is why. Grrr. Best, David
|