tests/TestBaseClassWeb.php 1

Type Line Description
TODO 101 Rename to getAdminUrl.

tests/surveys/LanguageChangerTest.php 1

Type Line Description
TODO 109 Use \createFieldMap instead?

tests/surveys/AjaxModeTest.php 2

Type Line Description
TODO 34 This works when run individually, but not
TODO 77 Temporary, test fails here (but only on fresh install).

tests/questions/MultipleChoiceNextPreviousTest.php 1

Type Line Description
TODO 67 Does not work without this.

tests/questions/MultipleChoiceMandatoryWithCommentTest.php 1

Type Line Description
TODO 178 Use \createFieldMap instead?

tests/bootstrap.php 1

Type Line Description
TODO 250 Move this logic to installater test.

tests/controllers/AdminViewsTest.php 1

Type Line Description
FIXME 120 need to crate another user

tests/controllers/CreateSurveyTest.php 2

Type Line Description
TODO 129 Since 2018-06-18, this does not longer work. "Cannot scroll into view". Could be
TODO 312 :Duplicated code.

tests/controllers/ThemeControllerTest.php 2

Type Line Description
TODO 287 Test won't work on Travis. Problem with file and folder permission? Web user != CLI user.
TODO 98 Split up in separate tests.

tests/controllers/InstallationControllerTest.php 1

Type Line Description
TODO 182 Does not work.

tests/data/views/adminSettingsViews.php 1

Type Line Description
TODO 4 not complete views list

tests/data/views/adminBaseViews.php 2

Type Line Description
TODO 5 currtnly these only contain pages that do not depend on opening a survey!
FIXME 19 this is broken

tests/data/views/adminGeneralSettingsViews.php 3

Type Line Description
TODO 5 not complete views list
TODO 15 Can't hardcode &id=2 if you using other urlFormat (path).
TODO 20 Can't hardcode &id=1 if you using other urlFormat (path).

tests/data/views/adminSurveyViews.php 7

Type Line Description
TODO 4 not complete views list
TODO 19
FIXME 22 these FAIL !!
TODO 34
TODO 41
FIXME 43 these FAIL !!
FIXME 50 these views need an activated survey

tests/data/views/adminUsersViews.php 3

Type Line Description
TODO 4 not complete views list
TODO 13 needs a POST
FIXME 18 bug, also: needs a POST

tests/TestHelper.php 1

Type Line Description
FIXME 95 !! $LEMsessid is not defined

application/core/plugins/ExportSTATAxml/STATAxmlWriter.php 1

Type Line Description
TODO 402 We could skip this loop if we had answer code

application/core/Survey_Common_Action.php 5

Type Line Description
TODO 261 : while refactoring, we must replace the use of $aViewUrls by $aData[.. conditions ..], and then call to function such as $this->_nsurveysummary($aData);
TODO 288 : http://goo.gl/ABl5t5
TODO 358 Real fix: No database queries while doing database update, meaning
TODO 818 : create subfunctions
TODO 889 Make quick-menu user configurable

application/core/WrongTemplateVersionException.php 1

Type Line Description
TODO 9 Put in another folder?

application/core/LSCGettextMessageSource.php 1

Type Line Description
TODO 23 Where is catalog set (except default value)?

application/core/LSUserIdentity.php 1

Type Line Description
TODO 69 rename the plugin function authenticate()

application/core/LSYii_ClientScript.php 1

Type Line Description
TODO 271 check if tmp directory can be named differently via config

application/core/LSYii_Application.php 1

Type Line Description
TODO 121 check the whole configuration process. It must be easier and clearer. Too many repitions

application/core/LSETwigViewRenderer.php 2

Type Line Description
TODO 66 Panic or default to something else?
TODO 560 find a way to fix in beforeCloseHtml @see https://bugs.limesurvey.org/view.php?id=13889

application/libraries/Save.php 2

Type Line Description
TODO 370 $this->aSaveErrors
TODO 397 $this->aSaveErrors

application/libraries/PluginManager/PluginBase.php 2

Type Line Description
TODO 389 Create a config object for this? One object for each config field? Then loop through those fields.
TODO 49 Add proper type hint in 3.0

application/helpers/expressions/em_core_helper.php 4

Type Line Description
TODO 71 - change this back to false
TODO 449 try to determine datatype?
TODO 1678 - Since want to use <span> for dynamic substitution, what if there are recursive substititons?
TODO 1736 - encode within SPAN?

application/helpers/expressions/em_manager_helper.php 44

Type Line Description
TODO 244 - add example from survey using assessments
TODO 333 ??
TODO 383 - ??
TODO 387 ??
TODO 1283 - implement qcode naming for this
TODO 1492 generic validation as to dateformat[SGQA].value : BUT not same in PHP and JS
TODO 2879 - create equations for these?
TODO 2882 ? How does it work?
TODO 3338 - create em_num_files class so can sepately style num_files vs. num_answers
TODO 3630 - do I need to force refresh, or trust that createFieldMap will cache langauges properly?
TODO 3966 Internal error if this happens
TODO 4444 - in a running survey, only need to process the current Group. For Admin mode, do we need to process all prior questions or not?
TODO 4605 - cache results and generated JavaScript equations?
TODO 4958 default should eventually be false
TODO 5156 only important thing from StartProcessingGroup?
TODO 5372 only important thing from StartProcessingGroup?
TODO 5424 - now that using $this->updatedValues, may be able to remove local copies of it (unless needed by other sub-systems)
TODO 5481 - add SQL error?
TODO 5482 - report SQL error?
TODO 5514 Internal error if this happens
TODO 5584 This kills the session if adminemail is defined, so the queries below won't work.
TODO 5585 - report SQL error?
TODO 5588 - add SQL error?
TODO 5884 only important thing from StartProcessingGroup?
TODO 6023 - what is desired behavior?
TODO 6162 how used if random?
TODO 6218 is this needed?
TODO 6308 is this needed?
TODO 6354 is this needed?
TODO 6407 is this needed?
TODO 6452 is this needed?
TODO 6488 - check this
TODO 6494 - why is array_unique needed here?
TODO 6579 - what about 'other'?
TODO 6623 - what about 'other'?
TODO 6634 - what about 'other'?
TODO 6782 check for errors?
TODO 6789 - currently invalidates all - should only invalidate those that truly fail validation rules.
TODO 7165 - what if this is called using Survey or Data Entry format?
TODO 7699 Internal error if this happens
TODO 8077 - is different type needed for text? Or process value to striphtml?
TODO 8883 Make a wrapper class around date converter, which constructor takes to-lang and from-lang
TODO 7257 : add directly hidden input in page without return it.
TODO 10106 : validate if it work : unsure it was shown always to user (nojs ?)

application/helpers/SurveyRuntimeHelper.php 13

Type Line Description
TODO 45 To respect object oriented design, all those "states" should be move to SurveyDynamic model, or its related models via relations.
TODO 67 To respect object oriented design, all those "states" should be move to Response model, or its related models via relations.
TODO 110 move somewhere else
TODO 177 - retrieveAnswers is slow - queries database separately for each question. May be fixed in _CI or _YII ports, so ignore for now
TODO 570 Why is $this->aSurveyInfo empty here?
TODO 634 set this to true if in admin mode but not if running a survey
TODO 741 twig
TODO 1068 check that line:
TODO 1412 find where they are defined before this call
TODO 1482 check with markus why $loadall, it's never ever defined, even in master branch
TODO 1579 check this:
TODO 1236 : find/get current qid for processing string
TODO 1313 : move to coreReplacements ? Can be good.

application/helpers/qanda_helper.php 7

Type Line Description
TODO 1441 : move to a dedicated function
TODO 2032 : check if $sValueHidden === $sValue
TODO 2196 : check if it should be the same than javavalue
TODO 2229 $value is not defined for some execution paths.
TODO 2241 : check if it should be the same than javavalue
TODO 2385 Regression here? Should use LEMval(minfiles) like above
TODO 2855 Slider and multiple-numeric input should really be two different question types

application/helpers/common_helper.php 10

Type Line Description
FIXME 722 rename and/or document this
TODO 929 move to template model
FIXME 967 insert UestionGroup model to here
TODO 1770 SQrelevance for different scales? $fieldmap[$fieldname]['SQrelevance']=$abrow['relevance'];
TODO 2495 input Survey Object
TODO 2516 input Survey Object
TODO 3078 : Adding the onload/onhover etc ... or remove this false security function
TODO 4260 use Yii model forms
TODO 4416 remove one of the Yii::app()->session see bug #5901
TODO 3101 Make the days configurable

application/helpers/surveytranslator_helper.php 1

Type Line Description
TODO 943 Should not give back different data types

application/helpers/viewHelper.php 1

Type Line Description
TODO 249 : filter inline javascript (onclick etc ..., but don't filter EM javascript) Maybe doing it directly in LEM->GetLastPrettyPrintExpression();

application/helpers/frontend_helper.php 8

Type Line Description
TODO 16 Why needed?
TODO 996 rewrite this THE YII WAY !!!! (application/third_party + internal config for namespace + aliases; etc)
TODO 1110 move the sql queries to a model
TODO 1717 replace by group model method
TODO 1395 Rename
TODO 1395 Move HTML to view
TODO 1753 : Make 'fieldarray' obsolete by replacing with EM session info
TODO 2073 Make cookie survey ID aware

application/helpers/questionHelper.php 2

Type Line Description
TODO 1178 add these later? "1F",
TODO 1188 add these later? "1F",

application/helpers/export_helper.php 1

Type Line Description
TODO 2191 refactor and simplify this code

application/helpers/sanitize_helper.php 2

Type Line Description
TODO 301 define the exact format of the username
TODO 314 define the exact format of the username

application/helpers/admin/activate_helper.php 1

Type Line Description
TODO 22 can call this function (no $_GET, but getParam) AND do it with Yii

application/helpers/admin/import_helper.php 1

Type Line Description
TODO 2187 set proper default

application/helpers/admin/ajax_helper.php 1

Type Line Description
TODO 161 Check if user is logged in

application/helpers/admin/statistics_helper.php 3

Type Line Description
TODO 1689 Support three or more duplicates.
FIXME 2051 $MyCache is undefined
TODO 2576 Support three or more duplicates.

application/helpers/remotecontrol/remotecontrol_handle.php 3

Type Line Description
FIXME 2783 $filename not defined!!!
TODO 2539 Need to clean up return array, especially the case when response was added but file not uploaded.
TODO 2539 See discussion: https://bugs.limesurvey.org/view.php?id=13794

application/helpers/userstatistics_helper.php 1

Type Line Description
TODO 1881 Support three or more duplicates.

application/helpers/Hash.php 1

Type Line Description
FIXME 106 !

application/commands/WipeCommand.php 1

Type Line Description
TODO 130 a valid error process

application/commands/InstallFromConfigCommand.php 1

Type Line Description
TODO 126 a valid error process

application/commands/InstallCommand.php 1

Type Line Description
TODO 107 a valid error process

application/commands/ResetPasswordCommand.php 1

Type Line Description
TODO 37 a valid error process

application/commands/DemomodeCommand.php 1

Type Line Description
TODO 28 a valid error process

application/models/Question.php 4

Type Line Description
TODO 41 should be singular
TODO 42 should be singular
TODO 265 move getQuestionAttributesSettings() to QuestionAttribute model to avoid code duplication
TODO 1071 : move other fix here ?

application/models/LSActiveRecord.php 1

Type Line Description
TODO 195 This should also be moved to the behavior at some point. This method overrides the parent in order to raise PluginEvents for Bulk delete operations. Filter Criteria are wrapped into a CDBCriteria instance so we have a single instance responsible for holding the filter criteria to be passed to the PluginEvent, this also enables us to pass the fully configured CDBCriteria instead of the original Parameters. See {@link find()} for detailed explanation about $condition and $params.

application/models/ParticipantAttributeName.php 1

Type Line Description
TODO 623 Doc

application/models/TemplateConfig.php 2

Type Line Description
TODO 276 attribute system rather than specific fields for RTL
TODO 1207 try to refactore most of those methods in TemplateConfiguration and TemplateManifest so we can define their body here.

application/models/SurveyLink.php 1

Type Line Description
TODO 156 this should be in survey model

application/models/Answer.php 2

Type Line Description
TODO 60 HAS_ONE relation should be in singular, not plural $answer->group, $answer->question
TODO 102 get via Question relations

application/models/UserGroup.php 3

Type Line Description
TODO 64 remove Users... see Louis' comment
TODO 102 seems to be unused, probably shouldn't be done like that
TODO 144 should use save() and afterSave() methods!!

application/models/Participant.php 6

Type Line Description
TODO 168 For some reason, the delete button is smaller than the others
TODO 1553 Always string??
TODO 1732 Weird...
TODO 1774 What is id here? Could it overwrite something?
TODO 1785 Why use two variables for this?
FIXME 1919 is this needed? this is currently not used here!

application/models/SurveyTimingDynamic.php 1

Type Line Description
TODO 157 $language is not used locally

application/models/Response.php 1

Type Line Description
TODO 159 Internal error - wrong filename saved?

application/models/TemplateManifest.php 2

Type Line Description
TODO 279 load to DB
TODO 641 create a method "setToDefault"

application/models/AdminTheme.php 1

Type Line Description
TODO 98 replace everywhere the call to Yii::app()->getConfig('adminstyleurl) by $oAdminTheme->sTemplateUrl;

application/models/TemplateConfiguration.php 3

Type Line Description
TODO 213 Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.
TODO 253 Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.
TODO 333 Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.

application/models/UpdateForm.php 3

Type Line Description
TODO 244 $downloadid not used locally
TODO 282 : RESTORE REPLACE NEWER !!
TODO 508 : add postgresql

application/models/User.php 5

Type Line Description
TODO 158 get this via $this instead of param
TODO 174 get this via $this instead of param
TODO 217 should be done via $oUser->delete directly
TODO 320 should be static
TODO 463 should be static

application/models/TokenDynamic.php 1

Type Line Description
TODO 36 Describe me!

application/models/Token.php 1

Type Line Description
TODO 52 Describe me!

application/models/Condition.php 1

Type Line Description
TODO 77 should be singular, not plural

application/models/SurveyLanguageSetting.php 1

Type Line Description
TODO 245 : rename and fix this

application/models/Notification.php 6

Type Line Description
TODO 23 Bell animation
TODO 272 : via survey relations
TODO 285 this should be in Survey model (relations?)
TODO 301 this should be in Survey model
TODO 317 Check first_read = null instead?
TODO 361 read = null?

application/models/QuestionTemplate.php 1

Type Line Description
TODO 441 code duplication

application/models/ParticipantShare.php 1

Type Line Description
TODO 25 should be singular

application/models/Permission.php 7

Type Line Description
TODO 554 in entry script, if CConsoleApplication, set user as superadmin
TODO 561 plugin should not be able to override the permission system (security issue),
TODO 579 see above about entry script and superadmin
TODO 585 should not be necessary
TODO 592 should not be necessary
TODO 599 give the rights to owner adding line in permissions table, so it will return true with the normal way
TODO 629 that should be the only way to get the permission,

application/models/UserInGroup.php 1

Type Line Description
TODO 54 should be singular

application/models/SurveyDynamic.php 1

Type Line Description
TODO 672 This provide a first step to enable the old jQgrid selector system, and could be use for users and tokens

application/models/QuestionAttribute.php 4

Type Line Description
TODO 130 use an array like for a form submit, so we can parse it from the controller instead of using $_POST directly here
TODO 135 if (in_array($oQuestion->attributes, $sAttribute))
TODO 168 : replace by Yii::app()->cache
TODO 164 This function needs to be incorporated in the model because it creates a big number of additional queries. For exmaple the default value merging could be done in AfterFind.

application/models/Survey.php 5

Type Line Description
TODO 1659 POST handling should be done in controller!
TODO 1701 POST handling should be done in controller!
TODO 1123 Document code, please.
TODO 1657 Should really be saved as three fields in the database!
TODO 1699 Should really be saved as three fields in the database!

application/controllers/PluginsController.php 3

Type Line Description
TODO 7 Not used, copied to admin/pluginmanager.php. Delete this file?
TODO 7 Actually, it's used for action direct.
TODO 254 Doc

application/controllers/survey/index.php 1

Type Line Description
TODO 236 can this be moved to the top?

application/controllers/UploaderController.php 1

Type Line Description
TODO 173 : unlink this file since this is just a preview. But we can do it only if it's not needed, and still needed to have the file content

application/controllers/RegisterController.php 1

Type Line Description
TODO 412 : move xss filtering in model

application/controllers/InstallerController.php 1

Type Line Description
TODO 28 Output code belongs into view

application/controllers/admin/usergroups.php 1

Type Line Description
TODO 350 Doc

application/controllers/admin/translate.php 2

Type Line Description
TODO 51 need to do some validation here on surveyid
TODO 546 not touched

application/controllers/admin/questions.php 5

Type Line Description
TODO 905 calcul correct value
TODO 1468 refactore multiple function to call the model, and then push all the common stuff to a model function for a dry code
TODO 1601 this should be get from the question model
TODO 1829 Longterm, change 'other' to boolean; change the model rules
TODO 880 Permission

application/controllers/admin/database.php 2

Type Line Description
TODO 586 sanitise XSS
TODO 98 : use model (and validate if we do it in model rules)

application/controllers/admin/surveypermission.php 4

Type Line Description
FIXME 55 this HTML stuff MUST BE IN VIEWS!!
TODO 84 Filter this in SQL query.
TODO 109 Commented by lemeur
TODO 33 Export HTML to view

application/controllers/admin/useraction.php 2

Type Line Description
TODO 107 If error, we want to keep the form values. Can't do it nicely without CActiveForm?
TODO 266 Delete what final user?

application/controllers/admin/participantsaction.php 7

Type Line Description
TODO 1689 What's the Difference between lang and langdata?
TODO 2272 This is a comma separated string of ids
TODO 2296 Why?
TODO 2317 This code can't be reached
TODO 2376 Maybe do this with SQL instead?
TODO 2056 Use user session?
TODO 2056 Used?

application/controllers/admin/surveyadmin.php 10

Type Line Description
TODO 81
TODO 99
TODO 196 Document me
TODO 425
TODO 531
TODO 599
TODO 1473 Change function name to _showOrganizeGroupsAndQuestions?
TODO 1913
TODO 1928
TODO 1974

application/controllers/admin/conditionsaction.php 6

Type Line Description
TODO 440 Is this form needed?
TODO 1135 Check if $p_newscenarionum is null
FIXME 1668 a lot of broken things here!! is this used at all?
TODO 662 Better way than to extract $args
TODO 761 Code duplication
TODO 2159 Not used

application/controllers/admin/questiongroups.php 1

Type Line Description
TODO 341 This is not an array, but a string "en"

application/controllers/admin/PluginHelper.php 2

Type Line Description
TODO 47 Assume this for all plugins?
TODO 8 Better name?

application/controllers/admin/tokens.php 5

Type Line Description
TODO 40 : check if it does something different than the model function
TODO 288 Why needed?
TODO 1328 Rename 'ok' to something meaningful.
TODO 490 Check if method is still in use
TODO 725 When is this function used without Ajax?

application/controllers/admin/update.php 2

Type Line Description
TODO 385 : aData should contains information about each step
TODO 550 : if no update available, set session about it...

application/controllers/admin/responses.php 4

Type Line Description
TODO 556 : add it to response->delete and response->afterDelete
TODO 48 Don't use extract
TODO 1024 Use user session?
TODO 1024 Used?

application/controllers/admin/ExpressionValidate.php 1

Type Line Description
TODO 270 : Find error in class name, style etc ....

application/controllers/admin/PluginManagerController.php 1

Type Line Description
TODO 106 Defensive programming

application/controllers/admin/authentication.php 1

Type Line Description
TODO 167 for sake of clarity, the plugin function should be renamed to authenticate().

application/controllers/admin/themes.php 1

Type Line Description
TODO 1096

application/controllers/admin/checkintegrity.php 1

Type Line Description
TODO 180 all this type of checks is meaningless since the code above will a) not put errors in model and b) its not the same model instance anyway