Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
musica_listas_backend
Commits
1921b256
Commit
1921b256
authored
Apr 30, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correccion lista padre
parent
60c6bf04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/BackendBundle/Controller/ListadoController.php
src/BackendBundle/Controller/ListadoController.php
+2
-2
No files found.
src/BackendBundle/Controller/ListadoController.php
View file @
1921b256
...
...
@@ -327,14 +327,14 @@ class ListadoController extends AbstractController {
if
(
$padreId
!=
null
&&
$padreId
!=
"default"
)
{
$listaPadre
=
$this
->
manager
->
getRepository
(
PluLista
::
class
)
->
find
(
$padreId
);
if
(
$listaPadre
->
getTag
()
!=
$tag
)
{
if
(
$listaPadre
!==
null
&&
$listaPadre
->
getTag
()
!=
$tag
)
{
$log
->
error
(
"Los tags ingresados no coinciden..."
);
$json
->
setData
(
array
(
'errors'
=>
'Estimado usuario, el tag de la lista padre debe ser igual al seleccionado.'
));
$json
->
setStatusCode
(
JsonResponse
::
HTTP_BAD_REQUEST
);
return
$json
;
}
if
(
$listaPadre
->
getLisPrecio
()
==
0
&&
$precio
==
0
)
{
if
(
$listaPadre
!==
null
&&
$listaPadre
->
getLisPrecio
()
==
0
&&
$precio
==
0
)
{
$log
->
error
(
"Padre e hija no pueden tener valor 0..."
);
$json
->
setData
(
array
(
'errors'
=>
'Estimado usuario, debe ingresar un valor para esta lista, dado que el padre posee valor 0.'
));
$json
->
setStatusCode
(
JsonResponse
::
HTTP_BAD_REQUEST
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment