Bug 5540

Summary: editing slip news changes to librarian interface
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: ToolsAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: PATCH-Sent (DO NOT USE) CC: chris
Version: Main   
Hardware: All   
OS: All   
URL: cgi-bin/koha/tools/koha-news.pl?op=add_form&id=4
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Proposed fix

Description Nicole C. Engard 2010-12-23 18:06:03 UTC
When you're editing a news item that has been designated for the 'slip' it changes the type to 'librarian interface' - if you don't notice that it does that you end up putting news in the wrong place.  All other types of news edit properly, it's just the slip that's funny.
Comment 1 Owen Leonard 2010-12-28 15:54:06 UTC
Created attachment 2913 [details] [review]
Proposed fix

    The script checks for a language-specific OPAC message and, if none
    is found, preselects none of the "display location" options. This
    results in the first item in the <select> behing highlighted by
    default, "Librarian interface." If we want to select "slip," we
    must add an explicit check for it.
Comment 2 Chris Cormack 2010-12-29 07:41:39 UTC
Pushed, please test