MantisBT: master-2.2 f8b2510f

Author Committer Branch Timestamp Parent
dregad GitHub master-2.2 2017-03-08 04:42 master-2.2 77330cb2
Affected Issues  0022479: Can't edit a project's name changing only accents a on MySQL
Changeset

Add project id param to project_*_name_unique()

This optional parameter is used to exclude the given id from the
uniqueness check, allowing correct behavior (i.e. avoid error 701)
when updating an existing project.

This was a problem on MySQL, because with utf8_general_ci collation,
accented characters are treated as identical, i.e. 'The' == 'thé'.

Fixes 0022479

mod - core/project_api.php Diff File