Publish album

Hi,

When I try to add new album and I checked to not publish album this not working. I try to debug code and it return OK values as boolean. But in uploader the code is always checked.

Can You check it?

Comments

  • acrylian Administrator, Developer
    The logged in admin sees all albums. So you have to log out to see the effect.
  • I do not see this failure. Perhaps more detail on exactly your process would help.
  • Largo Member
    I know, that when I'm logged I see everythink. Try this method:

    1. Log to ACP.
    2. Create new album without publishing it to public ( uncheck checkBox ).
    3. Uploader redirect You to new album images details, return to album view.
    4. Check for state of checkBox.
  • Largo Member
    I found an error:

    Publikacja albumu: /true. Typ zmiennej: string
    {Tue, 08 Jun 2010 07:43:03 GMT}
    Publikacja albumu: /false. Typ zmiennej: string

    Sorry for my language, but I think You understand it :-)
  • acrylian Administrator, Developer
    Indeed I can reproduce this.
  • Largo Member
    $setShow = substr($albumparmas[0],1);
    if($setShow == 'false') { $setShow = 0; } else { $setShow = 1; }

    $album->setShow($setShow);

    Or You can convert it to boolean :-)
  • Largo Member
    Next problem with publishing albums - when I go to the publishing section I try to publish all un-published albums. But nothing change, settings work but approving albums not. I try to debug it, but I can't, becsause code of Sql Query not working.
  • Largo Member
    OK, I make a fix for You - http://paste.org/pastebin/view/19667
  • acrylian Administrator, Developer
    Please use our bugtracker and attach the patch there. Thanks.
Sign In or Register to comment.