In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
683 [In-Portal CMS] Data Management bug report always 2010-04-08 23:19 2010-11-30 12:48
Dmitry  
alex  
normal  
closed 5.0.3-B2  
fixed  
 
none 5.1.1-B1  
http://groups.google.com/group/in-portal-dev/browse_thread/thread/e07d7763773f7ca4 http://groups.google.com/group/in-portal-bugs/browse_thread/thread/e1231bea60aacbf9
0
0000683: Preventing the Deletion of specific Sections in the Catalog
Goals:


1. Optimize current Category prefix/table by:

a. Get rid of CreatedBySystem field:

CreatedBySystem is used ONLY in 1 place:
Categories_tp.php, ItemIcon method:
if ($object->GetDBField('CreatedBySystem')) {
 if (!$object->GetDBField('IsMenu')) {
return 'icon16_section_menuhidden_system.png';
 }
return 'icon16_section_system.png';
}

Seem like we can successfully use ThemeId = 0 check instead.



2. Allow developer to prevent deletion of specific pages in structure

a. Rename IsSystem to "PageType" with 2 options:
- Virtual (User added)
- Template (generated from Theme Template, including container sections)

b. Create new field "Protected" with 2 options:
- Yes
- No

c. ALL Sections where PageType=Template automatically marked as "Protected = Yes"

d. ANY Protected section can NOT be (unless in DEBUG):

- Changed Status (approved/decline) field
- Changed Protected (yes/no) field
- Deleted
- Edited Filename or Actual name?
- Edited Design Template

parent of 0000867closed  (5.1.1)alex Default Fatal Error on Installation of Demo data 
parent of 0000868closed  (1.1.1)alex Simple Fatal Error on Installation of Demo data 
parent of 0000873closed  (5.1.1)alex In-Portal CMS Section Virtual and Protected modes can't be set during Theme scan 
patch page_protection_feature.patch (43,360) 2010-09-14 12:47
http://tracker.in-portal.org/file_download.php?file_id=769&type=bug
Issue History
2010-11-30 12:48 Dmitry Note Added: 0003029
2010-11-30 12:48 Dmitry Status resolved => closed
2010-09-26 13:08 Dmitry Relationship added parent of 0000873
2010-09-18 05:02 alex Relationship added parent of 0000868
2010-09-18 05:01 alex Relationship added parent of 0000867
2010-09-15 02:24 alex Note Added: 0002835
2010-09-15 02:24 alex Status reviewed and tested => resolved
2010-09-15 02:24 alex Fixed in Version => 5.1.1-B1
2010-09-15 02:24 alex Resolution open => fixed
2010-09-15 02:24 alex Changeset attached 5.1.x r13951
2010-09-14 17:56 Dmitry Note Added: 0002834
2010-09-14 17:56 Dmitry Assigned To !COMMUNITY => alex
2010-09-14 17:56 Dmitry Status needs testing => reviewed and tested
2010-09-14 12:47 alex Time Estimate Removed 5 =>
2010-09-14 12:47 alex Assigned To alex => !COMMUNITY
2010-09-14 12:47 alex Developer => alex
2010-09-14 12:47 alex Status needs work => needs testing
2010-09-14 12:47 alex File Added: page_protection_feature.patch
2010-08-27 13:14 alex Time Estimate Added 5
2010-07-31 13:38 Dmitry Assigned To => alex
2010-07-31 13:38 Dmitry Status active => needs work
2010-07-31 13:38 Dmitry Target Version Icebox => 5.1.1
2010-05-10 14:50 alex Target Version 5.0.4 => Icebox
2010-04-08 23:19 Dmitry New Issue
2010-04-08 23:19 Dmitry Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/e07d7763773f7ca4 http://groups.google.com/group/in-portal-bugs/browse_thread/thread/e1231bea60aacbf9

Notes
(0002834)
Dmitry   
2010-09-14 17:56   
Tested and working good, please commit!
(0002835)
alex   
2010-09-15 02:24   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000683: Preventing the Deletion of specific Sections in the Catalog
(0003029)
Dmitry   
2010-11-30 12:48   
Closing released 5.1.1 task.