Menu ▾ ▴

#22 "Unrecognized issue status" error after changing statuses

open-fixed
nobody
None
5
2003-06-03
2003-06-02
Anonymous
No

Hi.

I experienced this bug with version "0.5.0b". I changed
the statuses from ("open, ...") to a "french-ier" version ("ouvert,
...").

But I got a "NoStatus: Unrecognized issue status"
error when I want to add an issue as a non-manager. That is because,
in "zpt/previewform.zpt", if the user is not a manager, the status is
set to "open", which may not be in the statuses list.

The
following patch makes it work, by selecting the first status of the list
per default (although I think a "default status" property would be a
better choice) :

--- previewform.zpt.orig Mon Jun 2 17:02:42
2003
+++ previewform.zpt Mon Jun 2 17:03:17 2003
@@ -
116,7 +116,7 @@

</table>
<!-- Default status if not
selectable -->
-<input type="hidden"
tal:condition="not:here/hasManagerRole" name="status"
value="open">
+<input type="hidden"
tal:condition="not:here/hasManagerRole" name="status"
tal:attributes="value python:here.getStatuses()[0]">

<input type="hidden"
tal:condition="python:request.has_key('Tempfolder_fileattachments')"

tal:attributes="value request/Tempfolder_fileattachments"
name="Tempfolder_fileattachments">
<br>

HIH.

Discussion

  • Peter Bengtsson

    Peter Bengtsson - 2003-06-03

    Logged In: YES
    user_id=208160

    Thank you very much. I have uploaded your fix to CVS.

     
  • Peter Bengtsson

    Peter Bengtsson - 2003-06-03
    • status: open --> open-fixed
     

Log in to post a comment.