lucastex / MultiTenantTest

This project is being used to demonstrate a problem I am seeing with the multi-tenant-single-db plugin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project is being used to demonstrate a problem I am seeing with the multi-tenant-single-db plugin.

See multi-tenant/grails-multi-tenant-single-db#37

Steps to reproduce: 1 Run this project 2 Click on the "CustomerTagController" 3 create a new Customer Tag - perhaps "VIP" or whatever, and save it. 4 Now, create another customer tag with exactly the same name, and TRY to save it. I get a 500 error.

Repeat the steps above with the "TagController" - the validation error is correctly reported.

Putting a break point in the save method of CusomterController, you will see that

if (customerTagTypeInstance.hasErrors()) {

Always returns false.

Does anyone know what I can do to get hasErrors() report the correct validation errors?

About

This project is being used to demonstrate a problem I am seeing with the multi-tenant-single-db plugin.


Languages

Language:Groovy 56.6%Language:Shell 21.8%Language:CSS 21.3%Language:JavaScript 0.3%