Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - VladlenPopolitov

Pages: [1]
1
Older versions / Re: date picker not showing on 1.61
« on: January 20, 2010, 11:00:23 pm »
1.6.1 vs 1.6 change was:
diff -r public/assets/javascript/og/CalendarFunctions.js ../fengoffice16/public/assets/javascript/og/CalendarFunctions.js
235c235
<    og.createMonthlyViewDrag = function(div_id, obj_id, is_repetitive, type, origdate) {
---
>    og.createMonthlyViewDrag = function(div_id, obj_id, is_repetitive, origdate, type) {
----------------------------
need to change application/views/event/calendar.php line 390:

og.createMonthlyViewDrag('m_ms_div_<?php echo $milestone->getId() ?>', '<?php echo $milestone->getId()?>', false, 'milestone'); // Drag

It is solution.

Best regards,

Vladlen.

2
The forum has a lot of cries regarding problems with big files uploads. I am speaking not about configuration of PHP, but implementation of upload in the  Feng Office code. This implementation can be considered as a bug, but it works fine for small files (below 10-20MB) and can be considered as feature.

I am speaking about the storage of the files in a database.

Currently Feng Office uploads a file to a server, then assigns the content of the whole file to a variable (!): whole file is read to memory. Then the code creates SQL command, and it includes the content of the previous variable - this file is read to memory twice (!). If PHP process is limited by 40M on the server, it can not store in the memory two 20Mb (or more) variable.

 What we need is it to make for-loop in the code and read the file by parts 64K or 1M and store these parts to database. To increase performance file can be stored not in 1 record, but in many records with additional field - number of part.
The required changes will be minimal, but result will be valuable. Current limit 4M or 8M is not serious, we are sending and storing much bigger files.

Best regards,

Vladlen.

3
Older versions / Re: date picker not showing on 1.61
« on: January 20, 2010, 02:49:12 pm »
Version 1.6.1 has new bug in JavaScript code in calendar function.

Only one change in calendar functions is the change in parameters order. If you change parameters order, you have to change it in all places, where this function is called. It was not done in one place. I changed it in code and date picker appeared again. I am sorry, I do not have a code just now to say what to change, it is on another PC.

 It is 100% not browser problem.

Pages: [1]