plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
246 stars 186 forks source link

Specific Dexterity behaviors are shown on all content types #2087

Closed hvelarde closed 1 year ago

hvelarde commented 7 years ago

What I did:

I registered a Dexterity behavior like this:

  <plone:behavior
      title="Library"
      description="Adds extra fields for file classification."
      provides="my.package.behaviors.ILibrary"
      for="plone.app.contenttypes.interfaces.IFile"
      i18n:attributes="title; description"
      />

What I expect to happen:

as the behavior is declared explicitly for IFile I expect is shown only on File content type.

What actually happened:

the behavior is available for all Dexterity content types.

What version of Plone/ Addons I am using:

Plone 4.3.14 (this may happen in Plone 5 also) and plone.app.contenttypes 1.1.1.

jensens commented 1 year ago

I close the issue, because it addresses a Plone version that is no longer supported. If you think this is wrong please reopen the issue and assign a matching milestone.