* All apps: symlink files to not yet saved entries were not working

This commit is contained in:
Ralf Becker
2016-08-17 16:05:26 +02:00
parent d47b22822c
commit 94bc949cfa
4 changed files with 26 additions and 15 deletions

View File

@ -178,11 +178,15 @@ var et2_link_to = (function(){ "use strict"; return et2_inputWidget.extend(
// Filemanager select
var select_attrs = {
method: 'EGroupware\\Api\\Etemplate\\Widget\\Link::link_existing',
method_id: function() { return self.options.value.to_app + ':' + self.options.value.to_id;},
button_label: egw.lang('Link'),
button_caption: ''
};
// only set server-side callback, if we have a real application-id (not null or array)
// otherwise it only gives an error on server-side
if (self.options.value.to_id && typeof self.options.value.to_id != 'object') {
select_attrs.method = 'EGroupware\\Api\\Etemplate\\Widget\\Link::link_existing';
select_attrs.method_id = self.options.value.to_app + ':' + self.options.value.to_id;
}
this.vfs_select = et2_createWidget("vfs-select", select_attrs,this);
jQuery(this.vfs_select.getDOMNode()).change( function() {
var values = true;