BF [ 2876892 ] Save included tab before calling button action

https://sourceforge.net/tracker/?func=detail&aid=2876892&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2009-10-12 07:00:55 +00:00
parent 89ca4d1a81
commit 83d7e36195
1 changed files with 10 additions and 0 deletions

View File

@ -122,6 +122,9 @@ import org.compiere.util.Util;
* <li>FR [ 1974354 ] VCreateFrom.create should be more flexible * <li>FR [ 1974354 ] VCreateFrom.create should be more flexible
* <li>BF [ 1996056 ] Report error message is not displayed * <li>BF [ 1996056 ] Report error message is not displayed
* <li>BF [ 1998575 ] Document Print is discarding any error * <li>BF [ 1998575 ] Document Print is discarding any error
* @author Teo Sarca, teo.sarca@gmail.com
* <li>BF [ 2876892 ] Save included tab before calling button action
* https://sourceforge.net/tracker/?func=detail&aid=2876892&group_id=176962&atid=879332
* @author victor.perez@e-evolution.com * @author victor.perez@e-evolution.com
* @see FR [ 1966328 ] New Window Info to MRP and CRP into View http://sourceforge.net/tracker/index.php?func=detail&aid=1966328&group_id=176962&atid=879335 * @see FR [ 1966328 ] New Window Info to MRP and CRP into View http://sourceforge.net/tracker/index.php?func=detail&aid=1966328&group_id=176962&atid=879335
* @autor tobi42, metas GmBH * @autor tobi42, metas GmBH
@ -2276,6 +2279,13 @@ public final class APanel extends CPanel
if (m_curTab.needSave(true, false)) if (m_curTab.needSave(true, false))
if (!cmd_save(true)) if (!cmd_save(true))
return; return;
// Save included tabs if necessary - teo_sarca BF [ 2876892 ]
for (GridTab includedTab : m_curTab.getIncludedTabs())
{
if (includedTab.needSave(true, false))
if(!includedTab.dataSave(true))
return;
}
// //
int table_ID = m_curTab.getAD_Table_ID(); int table_ID = m_curTab.getAD_Table_ID();
// Record_ID // Record_ID