File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -673,9 +673,17 @@ function onShowEnd() {
673673 $ app ->tpl ->setVar ('fixed_folder ' , 'y ' );
674674 if ($ this ->_vhostdomain_type == 'domain ' ) {
675675 $ app ->tpl ->setVar ("server_id_value " , $ this ->dataRecord ["server_id " ], true );
676- $ app ->tpl ->setVar ("document_root " , $ this ->dataRecord ["document_root " ], true );
677- }
678- else $ app ->tpl ->setVar ('server_id_value ' , $ parent_domain ['server_id ' ]);
676+ if (isset ($ this ->dataRecord ["document_root " ])) {
677+ $ app ->tpl ->setVar ("document_root " , $ this ->dataRecord ["document_root " ], true );
678+ } else {
679+ $ tmp = $ app ->tform ->getDataRecord ($ this ->id );
680+ $ app ->tpl ->setVar ("document_root " , $ tmp ["document_root " ], true );
681+ unset($ tmp );
682+ }
683+
684+ } else {
685+ $ app ->tpl ->setVar ('server_id_value ' , $ parent_domain ['server_id ' ]);
686+ }
679687 } else {
680688 $ app ->tpl ->setVar ("edit_disabled " , 0 );
681689 $ app ->tpl ->setVar ('fixed_folder ' , 'n ' );
You can’t perform that action at this time.
0 commit comments