Fixed two other issues caused by wrong PrintListener usage.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2864 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
781c6d6876
commit
d5deb7c8fe
|
|
@ -37,6 +37,7 @@ import com.arsdigita.cms.contenttypes.util.ContenttypesGlobalizationUtil;
|
|||
import com.arsdigita.cms.contenttypes.GenericContactEntryKeys;
|
||||
import com.arsdigita.cms.util.GlobalizationUtil;
|
||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||
import com.arsdigita.globalization.GlobalizationHelper;
|
||||
|
||||
import com.arsdigita.globalization.GlobalizedMessage;
|
||||
import com.arsdigita.util.UncheckedWrapperException;
|
||||
|
|
@ -86,8 +87,8 @@ public class GenericContactEntryAddForm extends BasicItemForm {
|
|||
"cms.ui.select_one"))));
|
||||
|
||||
final GenericContactEntryKeys keyList = new GenericContactEntryKeys();
|
||||
// keyList.addLanguageFilter(GlobalizationHelper.getNegotiatedLocale()
|
||||
// .getLanguage());
|
||||
keyList.addLanguageFilter(GlobalizationHelper.getNegotiatedLocale()
|
||||
.getLanguage());
|
||||
while (keyList.next()) {
|
||||
String currentKey = keyList.getKey();
|
||||
//target.addOption(new Option(currentKey, keyList.getName()));
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ public class WorkflowsOptionPrintListener implements PrintListener {
|
|||
public void prepare(PrintEvent e) {
|
||||
PageState s = e.getPageState();
|
||||
OptionGroup w = (OptionGroup) e.getTarget();
|
||||
w.clearOptions();
|
||||
TaskCollection t = getCollection(s);
|
||||
|
||||
while (t.next()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue