Hobo / hobo

The web app builder for Rails (moved from tablatom/hobo)

Home Page:http://hobocentral.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phantom card appears in the aside column when acting user not admin

txinto opened this issue · comments

Hello, I have an app that crashes when the user is not admin. I've investigated and found that "children" automated scaffolding is creating a phantom card, and crashes when trying to write the title, as the relationships of the item are Nil. With a little patch we can avoid crashing and show the phantom card, and we can then select the "admin" user and see how it disappears.
I've created a branch of my current development that clearly shows the issue. This branch is

https://github.com/gatATAC/poris2/commits/hoboissue

see last three commits:

d4adf8a Source code not crashing thanks to a patch, showing the phantom card in the aside.

0579d4e Source code as we wanted to be, but crashes. See a txt file called IssueBehaviour.txt with all the details.

1f3dcb8 Source code not crashing, it works because we exchanged the children positions, so project memberships are not shown in the aside bar.

Thanks for developing and maintaining this fantastic framework!
Best regards from the Canary Islands.