Merge branch 'develop' of github.com:martini/zammad into develop

This commit is contained in:
Felix Niklas 2016-02-17 18:12:43 +01:00
commit 9e40e36bd8

View file

@ -393,7 +393,7 @@ class ApplicationController < ActionController::Base
data = { data = {
error: error error: error
} }
if error =~ /(already exists|duplicate key)/i if error =~ /(already exists|duplicate key|duplicate entry)/i
data[:error_human] = 'Object already exists!' data[:error_human] = 'Object already exists!'
end end
data data