In the following issue : OFBIZ-7922, there was a problem with the pagination of the Marketing Campaign list. Because there is not enough data in the demo, it was more difficult to find this bug.
To help the testing of this component, this adds some Marketing Campaign in the demo data (at least enough to unlock a second page of search).
jleroux: Actually you don't even have to add more data. The size of the list is defined by this property in widget.properties
# Default number of items to be displayed per page in a list form
widget.form.defaultViewSize=20
Locally you can change that by hand, clear caches, et voilà.
Now if we would like to have the same on demos we would need to have this property in the DB and use EntityUtilProperties.getPropertyNumber() to retrieve where it's done at the moment. Unfortunately EntityUtilProperties.getPropertyNumber() simply uses for the moment UtilProperties.getPropertyNumber() so it means more work than adding those data. But once done, it's for all (though you would still have to replace the calls where UtilProperties is used instead of EntityUtilProperties. I don't remember if we have an umbrella task ans subtasks for that. It seems though a long term work, because we have much properties likely to benefit from this possibility.
Another KISS option: maybe simply testing locally is sufficient ;)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1754657 13f79535-47bb-0310-9956-ffa450edef68
Following points were there in my mind before doing this change.
-- AFAIK ofbiztest@yahoo.com email doesn't exists.
-- Bounce email issue if you have enabled Javamail container. This drastically slow down your system performance.
-- Now anyone can use ofbiztesting@gmail.com account settings for Sendmail, Javamail container etc.
-- Send mail service triggered again and again with failure message on console if any of the email not found bccAddress inside ProductStoreEmailSettings entity. Again slow speed of your development machine.
-- Please let me know where to share the password of this account? Dev list?
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@938446 13f79535-47bb-0310-9956-ffa450edef68
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)
Of course this effort to remove trailing spaces has no functional implications.
Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {
So these changes are also in this commit, should not be a problem anyway.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@763175 13f79535-47bb-0310-9956-ffa450edef68