[Koha-bugs] [Bug 7997] can create a notice with the same code

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 26 00:18:35 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7997

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |veron at veron.ch

--- Comment #1 from Marc Véron <veron at veron.ch> ---
I tried t reproduce the behaviour with Version 3.08.00.000



I tested with following steps:

- Create 1st notice with code DOUBLETEST, insert some text, save
- Create 2nd notice, use same code DOUBLETEST, insert other text, save

In my case, the 2nd notice was silently discarded, the 1st notice was
unchanged.
This is consistent with the database:

mysql> describe letter;
+------------+--------------+------+-----+---------+-------+
| Field      | Type         | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+-------+
| module     | varchar(20)  | NO   | PRI |         |       |
| code       | varchar(20)  | NO   | PRI |         |       |
| branchcode | varchar(10)  | NO   | PRI |         |       |
| name       | varchar(100) | NO   |     |         |       |
| is_html    | tinyint(1)   | YES  |     | 0       |       |
| title      | varchar(200) | NO   |     |         |       |
| content    | text         | YES  |     | NULL    |       |
+------------+--------------+------+-----+---------+-------+

To prevent frustrations, it would really be nice to have
- at least a warning that the 2nd notice was not saved (and why)
- or better have a mechanisme to pre-test or warn before saving (and go back to
the form).

Marc

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list