View Issue Details

IDProjectCategoryView StatusLast Update
0004557OXID eShop (all versions)1. ----- eShop frontend -----public2014-02-18 16:44
Reportervilma_liorensaityte Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Target Version4.7.0_5.0.0_beta3Fixed in Version4.7.0_5.0.0_beta3 
Summary0004557: Deleting subshop templates are deleted too
DescriptionAt the moment we have possibility to have different templates for every shops. And there is functionality: if you delete shop, templates of this shop (in out/shopid) will be deleted too.

Solution:
1) Remove deleting of shop templates;
2) After deleting subshop, show message to user, that templates of this shop exists.
TagsSubshops
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

saulius.stasiukaitis

2012-10-03 14:19

reporter   ~0007539

Admin conroller changed. Remove line:
oxRegistry::get("oxUtilsFile")->deleteDir( $sTarget)

Add lines:
if (is_dir($sTarget)) {
 $oEx = oxNew( "oxExceptionToDisplay" );
 $oEx->setMessage( 'CUSTOM_TEMPLATE_EXIST_FOR_DELETED_SHOP' );
 oxRegistry::get("oxUtilsView")->addErrorToDisplay( $oEx, false );
}