modxcms / revolution

MODX Revolution - Content Management Framework
https://modx.com/
GNU General Public License v2.0
1.36k stars 529 forks source link

Problem when there is several active Sets in the Form Customization #3749

Closed Spheerys closed 6 years ago

Spheerys commented 13 years ago

spheerys created Redmine issue ID 3749

I have found an anomaly when I trying to use several active Sets for a same profile, with the TV templates. The goal, is to customize the manager for a final user. The final user (Bob), has to only have the necessary fields when he's editing/creating a document. We are using TVs for the several type of documents.

Preparation to reproduce the bug :

So normaly everything is ready to reproduce the bug :

modxbot commented 13 years ago

romain submitted:

A workaround would be to let TVs visible for all users, hide the TV panel/tab, create new tabs for each users (showing the needed ones to the proper user) and move TVs to appropriate tab

Spheerys commented 13 years ago

spheerys submitted:

Is this bug will be resolved for the 2.1.0-pl ?

The result of this bug is to generate confusion on the edition of the TVs for the final user : there are all the TVs tabs during the edition, instead of the Tabs link directly to the document.

Spheerys commented 13 years ago

spheerys submitted:

Hummm... am I the only one to have this problem ?

Is my procedure to reproduce the bug is not efficient ?

Please, just say a word !!! :)

modxbot commented 13 years ago

romain submitted:

« a word »… ok, i promiss i won't do it again. By the way, did you check if that's still occuring with the latest Revolution build (2.1.1-pl) ?

Spheerys commented 13 years ago

spheerys submitted:

yes of course, with the last 2.1.1-pl the bug is still occuring... that's why I have reactivates this bug report :)

Spheerys commented 13 years ago

spheerys submitted:

I'm a little bit disapointed by the silence here... Maybe my explains were not clear and nobody should reproduce the bug. But in this case, you can tell it !

Please tell me what's wrong with my bug repport !

Thanks :)

hugopeek commented 7 years ago

Will try to reproduce this bug during #modxbughunt.

hugopeek commented 7 years ago

OK, I think I figured out the scenario that TS described:

This results in both TVs not being displayed. I tested it with Pagetitle, with the same result.

Conclusion: the "hidden" state is dominant for the visibility toggle. If an element is present in multiple FC profiles, and visibility is unchecked in one of them, the element will remain hidden.

But is this a bug? If you turn this around and always make an element visible if it's checked, you can run into the exact same scenario in reverse, where a user could argue that the decision to hide a certain element is not being respected.

I suggest we describe the current behaviour a bit more pronounced in the MODX docs and on top of the FC grid. That way, users will know what to expect.