forked from joomla/joomla-cms
    
        
        - 
                Notifications
    
You must be signed in to change notification settings  - Fork 5
 
States & Categories that are in use cannot be moved to trash #17
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
          
     Closed
      
      
            priiish
  wants to merge
  4
  commits into
  bembelimen:publishing-workflow
from
priiish:publishing_workflow_onContentBeforeDelete
  
      
      
   
      
    
                
     Closed
            
            States & Categories that are in use cannot be moved to trash #17
                    priiish
  wants to merge
  4
  commits into
  bembelimen:publishing-workflow
from
priiish:publishing_workflow_onContentBeforeDelete
  
      
      
   
              
            Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    …"table not found" => fixed parameter $table instead of $tableInfo (array) - furthermore categories & states that have items can not not be moved to trash anymore (or be deleted) because they are in use
…heir state - except to trash. Issue still open: error message when changing states apart from published to unpublished (works though)
now states / categories that have items cannot be deleted but states can changed to publish or unpublished without errors
    
  bembelimen 
      pushed a commit
      that referenced
      this pull request
    
      Sep 7, 2018 
    
    
      
  
    
      
    
  
* Load correct core files of override files (#2) Start implements loadcorefile() in administrator/components/com_templates/Model/TemplateModel.php * CS (#3) Coding Standards * codingstandards * codingstandards (#4) * Test (#6) Phase 2 (2 part) Mechanism to find correct core file and implementation. * Remove Notice: Only available for html-folder * Remove Warning if core file not found (#11) Thanks. So one part of the issue joomla-projects/gsoc18_override_management#12 is done. * Implement the diff view in template manager Implement the diff view in template manager * coding standard (#17) * fix diff (#18) Fix bug in path in case of administrator template override. Fix bug in path in case of administrator template override. * Notification after update and TEST (#16) Find changed files of overridden files and show message. * coding standard (#21) * correction * correction (#26) * Correcthtmlpath (#27) * correction * change oldhtml to newhtml * List of updated override files. (#30) * addcss (#34) * Final Product (#39) Core and Diff view Updated override history list. Quick icon notification plugin. Override control plugin. * save 3 lines :) * New feature show status. (#47) show status in com_template view templates * link * corrected namespace * Button to Switch (#35) * wip add Switcher * wip style switcher * wip style switch make inline and change on off text * wip start with js * wip js * wip delete buttons and make js more robust * wip save to storage * wip delete old code * wip * wip lint * wip css * set default value for switcher * wip make switcher blue * wip * wip * build * correct names * create new functions * fist test code * use onchange * undo installer.min.js * add forgotten new line at the end of css file * correct align * correct compare.es6 - only deleted the toggle part * correct compare.js - only deleted the toggle part * wip * reduce timeout * wrap in funcitons * wip * add use strict to both js-files(compare and toggle) * add the timeout value of 500 again, because 200 are not enought in my case * use css class 'active' for toggle views * add strict * time out for editor * wip * improvments use newActive and switch * correction * width of switcher-spans * correct align * do not use global * wip * removed timeouts * JTEXT to TEXT * forgotton last line * deleted duplicated comments * css fix align * use unnamed functions in es6 * Sql files for fix database (#50) * sql files for database fix * delete space * Suggestion for displaying Dates in view updates files (#52) Correct Dates and do not use date of file any more * Store Date as UTC and show it in server time zone (#57) * modified and created date are created and stored in UTC * convert dates for displaying in model * spar a loop * normalize timezone in view * use language constants for dateformat * JToolbarHelper to ToolbarHelper * CS * namespace * plural * name * clean * text * fx * sin * files * s * Suggestion for language strings (#60) * language strings * correct typo * delete media folder plg_quickicon * add folder plg_quickicon to build/media_src * delete files in media folder * Move media folder - System (#66) * multi * cs * delete files in media folder for joomla toolbar (#67) * Fix button switchers style. (#70) * button * CS * changed uitab.addTab for updated files * Bring back core.js changes. (#69) * core.js * const * fix * form * core * hound * CS * scopr * grid * alpha * cs * lang * only override file * lang * override lang installer * Cs * sub * Update list of core extensions (#71) * Language changes (#76) * update * Update en-GB.com_templates.ini * override JLIB_HTML_PUBLISH_ITEM this is the hover text on the publish icon in the list of files * Change icon (#74) change the icon to use an outline for more consistency * lang * not core (#75) * not core * Update en-GB.plg_installer_override.ini * namespace * cs * Updated files (#82) * Update default_updated_files.php * Update en-GB.com_templates.ini * Update en-GB.com_templates.ini (#81) * Update en-GB.plg_quickicon_overridecheck.ini (#80) * Update en-GB.plg_quickicon_overridecheck.ini (#79) * remove space (#78) * Update en-GB.plg_quickicon_overridecheck.ini * Update en-GB.plg_quickicon_overridecheck.sys.ini * remove hardcoded id * null get function * state * clean * More changes "core" to "original" (#85) * cs * update * plural
    
  bembelimen 
      pushed a commit
      that referenced
      this pull request
    
      Dec 31, 2021 
    
    
      
  
    
      
    
  
* Add some events when fetching media data * Use dispatcher to trigger event * Use an event instance * Class per event (#15) * Argument validations and getter (#16) * Class per event * Argument validations * global * Use result from events * Copy year * Use internal variable * void * adapt model * Validate events (#17) * Revert commit ec8b4c8 ccd02cb and 9a2a119 * Validate and immutable events * Update administrator/components/com_media/src/Event/FetchMediaFileEvent.php Co-authored-by: Harald Leithner <[email protected]> * Update administrator/components/com_media/src/Event/FetchMediaFilesEvent.php Co-authored-by: Harald Leithner <[email protected]> * Rename the events * Cleanup events Co-authored-by: Fedir Zinchuk <[email protected]> Co-authored-by: Harald Leithner <[email protected]>
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Pull Request for Issue # .
Summary of Changes
not found" => fixed parameter, used $table instead of $tableInfo (array)
to trash anymore (or be deleted) because they are in use
Testing Instructions
Expected result
Table in Joomla db for state should be found without errors.
It should not be possible to move categories & states, that are in use, to trash.
Actual result
See testing instructions. It is confusing for the user if you can move items to trash but afterwards not delete them completely. In this case it should not be possible to move items, that are in use, to trash in the first place.
Documentation Changes Required
None.