Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All Attributes: delete empty items at database #1005

Closed
17 tasks done
zonky2 opened this issue Apr 7, 2016 · 8 comments
Closed
17 tasks done

All Attributes: delete empty items at database #1005

zonky2 opened this issue Apr 7, 2016 · 8 comments
Assignees
Labels
bug A bug! A bug! Fast, squish it!
Milestone

Comments

@zonky2
Copy link
Contributor

zonky2 commented Apr 7, 2016

Checklist:

I confirm that:

My environment is:

Key Value Comments
PHP version: 5.6
Contao version: 3.5.8
MetaModels version: 2.0.0 a10
Installation via composer yes
Installed MetaModels packages bundle_all

Issue description

if you clear a existing complex/translated item e.g. attribute_translatedtext we have a empty item at database - see screenshot below

e.g. the same MetaModels/attribute_translatedurl#4

Steps to reproduce

  1. multilanguage MM with translated text
  2. fill at input mask and save
  3. delete the text at input mask and save
  4. look at database...

Screenshots

shot187

Check and update

@zonky2 zonky2 added the bug A bug! A bug! Fast, squish it! label Apr 28, 2016
@zonky2 zonky2 added this to the 2.0.0 milestone Apr 28, 2016
@zonky2 zonky2 changed the title Translated Attributes: delete empty items at database All Attributes: delete empty items at database Dec 31, 2016
@johannes-bittner
Copy link

Soweit schon einmal geprüft und nicht funktionierend:
attribute_translatedtext => Eintrag bleibt stehen
attribute_translatedcheckbox => Eintrag bleibt stehen
attribute_translatedcombinedvalues => Eintrag bleibt stehen
attribute_translatedfile => Eintrag bleibt stehen
attribute_translatedlongtext => Eintrag bleibt stehen
attribute_translatedtabletext => Eintrag bleibt stehen

@discordier discordier self-assigned this Mar 28, 2017
zonky2 added a commit to zonky2/core that referenced this issue Apr 24, 2017
zonky2 added a commit to zonky2/core that referenced this issue Apr 24, 2017
@johannes-bittner
Copy link

johannes-bittner commented Apr 25, 2017

with PR #1117

attribute_translatedtext => OK
attribute_translatedcheckbox => OK
attribute_translatedtabletext => OK
attribute_translatedlongtext => OK
attribute_translatedcombinedvalues => OK

@zonky2
Copy link
Contributor Author

zonky2 commented Apr 25, 2017

setTranslatedDataFor at https://github.com/MetaModels/core/blob/master/src/MetaModels/Attribute/TranslatedReference.php#L299 should implement at all attributes as own method

@zonky2
Copy link
Contributor Author

zonky2 commented Apr 26, 2017

with PR MetaModels/attribute_translatedfile#15
attribute_translatedfile => OK

@johannes-bittner
Copy link

johannes-bittner commented May 19, 2017

@zonky2
Copy link
Contributor Author

zonky2 commented May 19, 2017

@discordier || @stefanheimes pls merge the linked PRs

zonky2 added a commit to zonky2/core that referenced this issue May 19, 2017
zonky2 added a commit to zonky2/core that referenced this issue May 19, 2017
baumannsven pushed a commit that referenced this issue Aug 24, 2017
baumannsven added a commit that referenced this issue Aug 24, 2017
* hotfix_#1005_delete_empty_items:
  Hotfix #1005 delete empty items

# Conflicts:
#	src/MetaModels/Attribute/TranslatedReference.php
@baumannsven
Copy link
Member

Merged in 76e6216

@zonky2
Copy link
Contributor Author

zonky2 commented Aug 24, 2017

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug! A bug! Fast, squish it!
Projects
None yet
Development

No branches or pull requests

4 participants