suppression du message formulaire (ref #240)
This commit is contained in:
parent
1209c90388
commit
3fc0a1b809
|
@ -300,7 +300,9 @@ class FileController extends Controller
|
|||
|
||||
$urlsource= $fulldirectory."/".$oldname;
|
||||
$urldestination = $fulldirectory."/".$data["subdirectory"];
|
||||
|
||||
if($urlsource!=$urldestination) {
|
||||
|
||||
if($fs->exists($urldestination)) {
|
||||
$form->addError(new FormError('Ce nom existe déjà'));
|
||||
$this->get('session')->getFlashBag()->clear();
|
||||
|
|
|
@ -46,7 +46,8 @@
|
|||
|
||||
$('document').ready(function(){
|
||||
{% if toclose %}
|
||||
parent.location.reload();
|
||||
href=parent.location.href;
|
||||
parent.location.href=href;
|
||||
{% endif %}
|
||||
$("#form_subdirectory").focus();
|
||||
|
||||
|
|
Loading…
Reference in New Issue