Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users
Re: lost story
 

Index | Next | Previous | View Flat


zdravko.balorda at siix

Jan 18, 2012, 3:54 AM


Views: 750
Permalink
Re: lost story [In reply to]

David E. Wheeler wrote:

> --- a/lib/Bric/Biz/Asset.pm
> +++ b/lib/Bric/Biz/Asset.pm
> @@ -259,6 +259,7 @@ sub lookup {
> my $sql = build_query($pkg, $pkg->COLUMNS . $pkg->RO_COLUMNS
> . join (', ', '', $pkg->GROUP_COLS), $grp_by,
> $tables, $where, $order, @{$param}{qw(Limit Offset)});
> + print STDERR $$sql;
> my $fields = [ 'id', $pkg->FIELDS, 'version_id', $pkg->VERSION_FIELDS,
> $pkg->RO_FIELDS, 'grp_ids' ];
> my @obj = fetch_objects($pkg, $sql, $fields, scalar $pkg->GROUP_COLS, $args);

Hi!
I think I got it. story.current_version says 3, while story_instance contains only
entries with version 1, 2, and 2. The last one being checked_out. Now what to do?
Should the story_instance.version be set to 3 on a checked_out instance?
Then story.current_version would match story_instance.version, which seems proper.

Regards, Zdravko

Actually, it was the version number. I have updated it to 3, and voila, the story
was back. :)
Thanks!

Regards, Zdravko

Subject User Time
Lost Story jjustian at ameritech Jan 11, 2005, 10:37 AM
    Re: Lost Story lannings at who Jan 11, 2005, 11:09 AM
    Lost Story jjustian at clockworklogic Jan 12, 2005, 4:07 PM
        Re: Lost Story lannings at who Jan 12, 2005, 10:08 PM
            Re: Lost Story jjustian at clockworklogic Jan 13, 2005, 8:34 AM
    Re: lost story zdravko.balorda at siix Jan 17, 2012, 11:45 PM
    Re: lost story zdravko.balorda at siix Jan 17, 2012, 11:45 PM
    Re: lost story zdravko.balorda at siix Jan 18, 2012, 3:54 AM
        Re: lost story david at justatheory Jan 18, 2012, 9:38 AM
    Re: lost story zdravko.balorda at siix Jan 18, 2012, 3:54 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.