Merge pull request #1047 from julceslauhub/master
BUG 7900 DynaForm title not changed in designer, on save SOLVED
This commit is contained in:
@@ -163,7 +163,7 @@ class XmlForm_Field_toolButton extends XmlForm_Field
|
||||
$dataset = DynaformPeer::doSelectRS($criteria);
|
||||
if ($dataset->getRecordCount() > 0) {
|
||||
$html .= '<span style="font-size: 8pt;margin-left: 20px;">' . G::LoadTranslation('ID_EDITING_DYNAFORM');
|
||||
$html .= ': <select onchange="window.location = \'dynaforms_Editor?PRO_UID=' . $this->owner->values['PRO_UID'];
|
||||
$html .= ': <select id="_dynaformsList_" onchange="window.location = \'dynaforms_Editor?PRO_UID=' . $this->owner->values['PRO_UID'];
|
||||
$html .= '&DYN_UID=\' + this.value;" class="module_app_input___gray">';
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$dataset->next();
|
||||
|
||||
@@ -243,6 +243,7 @@ var dynaformEditor={
|
||||
return false;
|
||||
}
|
||||
if (res==0) {
|
||||
document.getElementById('_dynaformsList_').options[document.getElementById('_dynaformsList_').selectedIndex].text = getField('DYN_TITLE', 'dynaforms_Properties').value;
|
||||
alert(G_STRINGS.ID_SAVED);
|
||||
} else {
|
||||
if (typeof(res.innerHTML) == 'undefined') {
|
||||
@@ -291,14 +292,14 @@ var dynaformEditor={
|
||||
document.getElementById('importAjax').style.display = 'none';
|
||||
panelImportDyna.addContent(oRPC.xmlhttp.responseText);
|
||||
},
|
||||
import:function(uidDynaSelect){
|
||||
importation:function(uidDynaSelect){
|
||||
document.getElementById('importAjax').style.display = 'block';
|
||||
document.getElementById('importForm').style.display = 'none';
|
||||
var oRPC = new leimnud.module.rpc.xmlhttp({
|
||||
url : '../dynaforms/fieldsHandlerAjax',
|
||||
async : false,
|
||||
method: 'POST',
|
||||
args : 'request=import' + '&DYN_UID=' + this.dynUid + '&FILE=' + uidDynaSelect
|
||||
args : 'request=importation' + '&DYN_UID=' + this.dynUid + '&FILE=' + uidDynaSelect
|
||||
});
|
||||
oRPC.make();
|
||||
resp = oRPC.xmlhttp.responseText;
|
||||
|
||||
@@ -166,7 +166,7 @@ switch ($request) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="2" class="FormButton">
|
||||
<input type="button" onclick="dynaformEditor.import(document.getElementById('form[IMPORT_DYNA]').value);" value="' . G::LoadTranslation('ID_IMPORT') . '" class="module_app_button___gray " style="">
|
||||
<input type="button" onclick="dynaformEditor.importation(document.getElementById('form[IMPORT_DYNA]').value);" value="' . G::LoadTranslation('ID_IMPORT') . '" class="module_app_button___gray " style="">
|
||||
<input type="button" onclick="panelImportDyna.remove();" value="' . G::LoadTranslation('ID_CANCEL') . '" class="module_app_button___gray " style="">
|
||||
</td>
|
||||
</tr>
|
||||
@@ -174,7 +174,7 @@ switch ($request) {
|
||||
</table><div>';
|
||||
echo $html;
|
||||
break;
|
||||
case 'import':
|
||||
case 'importation':
|
||||
require_once 'classes/model/Dynaform.php';
|
||||
$uidDynafom = $_POST['DYN_UID'];
|
||||
$oCriteria = new Criteria( 'workflow' );
|
||||
|
||||
Reference in New Issue
Block a user