Log message #3928172

# At Username Text
# Sep 6th 2016, 16:52 s13 C'est quoi le sujet du live ?
# Sep 6th 2016, 16:51 SpoutBE lol
# Sep 6th 2016, 16:38 s13 hahaha :D hello
# Sep 6th 2016, 16:37 SpoutBE salut s13 :D
# Sep 6th 2016, 16:37 SpoutBE lol j'avais pas capté que c'était s13 qui avait continué la conversation :D
# Sep 6th 2016, 16:29 SpoutBE $this->Html->link($entity->title, $entity->absoluteUrl);
# Sep 6th 2016, 16:29 SpoutBE Piqué l'idée de Django, ça rox
# Sep 6th 2016, 16:29 SpoutBE Dans mes entity maintenant je met systematiquement un _getAbsoluteUrl: https://gist.github.com/spout/c0e12364cf99770fea5b56da37268b17
# Sep 6th 2016, 16:22 s13 voila bon je sais bien que t'es pas un neuneu
# Sep 6th 2016, 16:22 SpoutBE juste un .hide()
# Sep 6th 2016, 16:22 SpoutBE à 1
# Sep 6th 2016, 16:22 SpoutBE non vu qu'il faut submit le name="delete"
# Sep 6th 2016, 16:22 s13 par contre faut pas que tu fasse un remove()
# Sep 6th 2016, 16:21 SpoutBE ah oui c'est une soluce aussi bien vu
# Sep 6th 2016, 16:21 SpoutBE tant pis, checkbox, là pas trop de temps à perdre
# Sep 6th 2016, 16:21 s13 ben tu fous le field delete en hidden et tu le set à 1 sur l'event onclick de ton bouton
# Sep 6th 2016, 16:21 SpoutBE comme je faisais avec cake 1 et 2 quoi
# Sep 6th 2016, 16:20 SpoutBE ho non, j'voulais le meme fonctionnement que le saveAssociated
# Sep 6th 2016, 16:20 s13 oui avec le boyton tu peux faire un appel ajax et c'est réglé
# Sep 6th 2016, 16:20 SpoutBE ça à l'avantage de pas deleter direct (misclick)
# Sep 6th 2016, 16:20 SpoutBE checkbox à cocher pr delete
# Sep 6th 2016, 16:20 SpoutBE Bon ben tant pis je laisse ça aussi alors
# Sep 6th 2016, 16:19 SpoutBE lol comme moi :D
# Sep 6th 2016, 16:19 SpoutBE truc de moule quoi :D
# Sep 6th 2016, 16:19 s13 https://gist.github.com/orgasmicnightmare/e1f3dc16caf53b552e3b57965efef05d
# Sep 6th 2016, 16:19 SpoutBE et $(this).closest('fieldset').remove();
# Sep 6th 2016, 16:19 SpoutBE c'est juste qu'en général je met un <button type="button" class="btn btn-danger delete"><?php echo __("Delete"); ?></button>
# Sep 6th 2016, 16:18 SpoutBE Bon sinon tant pis je vais rester avec mon delete à la mano
# Sep 6th 2016, 16:18 SpoutBE c'est pas Menu que je supprime
# Sep 6th 2016, 16:17 SpoutBE aucun cascade à faire
# Sep 6th 2016, 16:17 SpoutBE oui donc c'est ce que je dis, rien à voir avec dependant
# Sep 6th 2016, 16:17 s13 il fait patchEntity($entity, data)
# Sep 6th 2016, 16:17 s13 oui mais c'est pareil
# Sep 6th 2016, 16:16 SpoutBE ben je fais rien, c'est Crud qui fait tout :D
# Sep 6th 2016, 16:16 s13 J'ai fait un truc similiaire avec un flag "delete" sur l'enfant
# Sep 6th 2016, 16:16 SpoutBE sur MenuItemsTable
# Sep 6th 2016, 16:16 s13 Le pb vient du fait que tu fais surement un patchEntity() avedc les données de ton form, mais pour lui c'est comme si tu n'avais rien fait.
# Sep 6th 2016, 16:16 SpoutBE }
# Sep 6th 2016, 16:16 SpoutBE }
# Sep 6th 2016, 16:16 SpoutBE $this->delete($entity);
# Sep 6th 2016, 16:16 SpoutBE if (!empty($entity->delete)) {