Dolibarr ERP & CRM » Bugs » bug #1317 Removing a category does not remove all child categoriesLatest modifications
Answer now
Snapshot Details |
Submitted by: | Marcos García (marcosgdf) | | Submitted on: | 2014-03-31 00:15 |
Last Modified On: | 2014-03-31 00:15 | |
Summary: | Removing a category does not remove all child categories |
Description: | Reported by a dolibarr.es forum user in http://dolibarr.es/index.php/foro/7-bugs-versiones-estables/4930-eliminar-categoria-con-subcategoria-asociada#4946
It does happen in 3.4.2 and 3.5.1. A fix is required for 3.4.3 and 3.5.2.
( ! ) Xdebug: user triggered in /var/www/htdocs/core/lib/functions.lib.php on line 2324
Call Stack
# Time Memory Function Location
1 0.0014 235736 {main}( ) ../viewcat.php:0
2 0.0428 1402448 Categorie->print_all_ways( ) ../viewcat.php:154
3 0.0428 1402736 Categorie->get_all_ways( ) ../categorie.class.php:956
4 0.0433 1405616 Categorie->get_all_ways( ) ../categorie.class.php:1083
5 0.0435 1408328 Categorie->get_all_ways( ) ../categorie.class.php:1083
6 0.0438 1413520 Categorie->get_all_ways( ) ../categorie.class.php:1083
7 0.0438 1413656 Categorie->get_meres( ) ../categorie.class.php:1078
8 0.0439 1412056 dol_print_error( ) ../categorie.class.php:1063
9 0.0485 1450656 xdebug_print_function_stack ( ) ../functions.lib.php:2324
Dolibarr ha detectado un error técnico.
He aquí la información que podrá ayudar al diagnóstico:
Fecha: 20140330221505
Dolibarr: 3.5.1
Nivel de funciones: 0
PHP: 5.5.9-1~dotdeb.1
Server: Apache/2.2.22 (Debian)
URL solicitada: /categories/viewcat.php?id=6&type=2
Referer: http://dev.dolibarr.org/categories/fiche.php?type=2
Gestor de menú: eldy_menu.php
Tipo de gestor de base de datos: mysqli
Petición último acceso a la base de datos erróneo: SELECT fk_parent FROM llx_categorie WHERE rowid =
Código devuelto último acceso a la base de datos erróneo: DB_ERROR_SYNTAX
Información sobre el último acceso a la base de datos erróneo: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
XDebug informations:
File: /var/www/htdocs/categories/class/categorie.class.php
Line: 1063
Function: get_meres
( ! ) Warning: Invalid argument supplied for foreach() in /var/www/htdocs/categories/class/categorie.class.php on line 1081
Call Stack
# Time Memory Function Location
1 0.0014 235736 {main}( ) ../viewcat.php:0
2 0.0428 1402448 Categorie->print_all_ways( ) ../viewcat.php:154
3 0.0428 1402736 Categorie->get_all_ways( ) ../categorie.class.php:956
4 0.0433 1405616 Categorie->get_all_ways( ) ../categorie.class.php:1083
5 0.0435 1408328 Categorie->get_all_ways( ) ../categorie.class.php:1083
6 0.0438 1413520 Categorie->get_all_ways( ) ../categorie.class.php:1083
|
Step to reproduce bug: | 1. Create a category
2. Create a child category of the 1st one.
3. Remove parent category
4. Create a new category child of the child category
5. PHP Error |
Detected in version: | 3.4.1 | | Category: | Module: Categories |
Severity: | 6 | | OS Type/Version: | |
PHP version: | | | Database type and version: | |
Status |
Status: | Open | | Assigned to: | None |
Resolution: | Fixed | |
Comments- Laurent Destailleur 2014-04-02 11:42
- The bug has been corrected inside GIT sources
(http://www.github.com/Dolibarr/dolibarr).
So fix should be available with next stable release. |
|
(http://www.github.com/Dolibarr/dolibarr).
So fix should be available with next stable release.
None→ Fixed