View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
08807Bug reportsPluginspublic2014-07-03 12:35
Reporterlemeur Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Summary08807: When the AuditLog plugin is active, you can't add a Participant in the central participant database
Description

When the AuditLog plugin is active, you can't add a Participant in the central participant database

Steps To Reproduce

Enable the AuditLog plugin
go to central participant database
click display participant
click the + icon
fill in the form and click Add

Additional Information

The silent exception raised in Participant::insertParticipant is:

error exception 'CException' with message 'Property "PluginEventBehavior.isNewRecord" is not defined.' in /data/limesurvey/framework/base/CComponent.php:130\nStack trace:\n#0 /data/limesurvey/plugins/AuditLog/AuditLog.php(56): CComponent->__get('isNewRecord')\n#1 [internal function]: AuditLog->beforeParticipantSave()\n#2 /data/limesurvey/application/libraries/PluginManager/PluginManager.php(171): call_user_func(Array)\n#3 /data/limesurvey/application/models/behaviors/PluginEventBehavior.php(56): PluginManager->dispatchEvent(Object(PluginEvent))\n#4 /data/limesurvey/application/models/behaviors/PluginEventBehavior.php(34): PluginEventBehavior->dispatchPluginModelEvent('beforeParticipa...')\n#5 /data/limesurvey/framework/base/CComponent.php(561): PluginEventBehavior->beforeSave(Object(CModelEvent))\n#6 /data/limesurvey/framework/db/ar/CActiveRecord.php(840): CComponent->raiseEvent('onBeforeSave', Object(CModelEvent))\n#7 /data/limesurvey/framework/db/ar/CActiveRecord.php(942): CActiveRecord->onBeforeSave(Object(CModelEvent))\n#8 /data/limesurvey/framework/db/ar/CActiveRecord.php(1071): CActiveRecord->beforeSave()\n#9 /data/limesurvey/framework/db/ar/CActiveRecord.php(806): CActiveRecord->insert(NULL)\n#10 /data/limesurvey/application/models/Participant.php(148): CActiveRecord->save()\n#11 /data/limesurvey/application/controllers/admin/participantsaction.php(541): Participant->insertParticipant(Array)\n#12 [internal function]: participantsaction->editParticipant()\n#13 /data/limesurvey/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(Object(participantsaction), Array)\n#14 /data/limesurvey/application/core/Survey_Common_Action.php(99): CAction->runWithParamsInternal(Object(participantsaction), Object(ReflectionMethod), Array)\n#15 /data/limesurvey/application/controllers/admin/participantsaction.php(50): Survey_Common_Action->runWithParams(Array)\n#16 /data/limesurvey/framework/web/CController.php(308): participantsaction->runWithParams(Array)\n#17 /data/limesurvey/framework/web/CController.php(286): CController->runAction(Object(participantsaction))\n#18 /data/limesurvey/framework/web/CController.php(265): CController->runActionWithFilters(Object(participantsaction), Array)\n#19 /data/limesurvey/application/controllers/AdminController.php(169): CController->run('participants')\n#20 /data/limesurvey/framework/web/CWebApplication.php(282): AdminController->run('participants')\n#21 /data/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController('admin/participa...')\n#22 /data/limesurvey/framework/base/CApplication.php(180): CWebApplication->processRequest()\n#23 /data/limesurvey/index.php(200): CApplication->run()\n#24 {main}, referer: https://MYSERVER/index.php/admin/participants/sa/displayParticipants

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)140302
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql
Server OS (if known)linux
Webserver software & version (if known)apache2
PHP Version5

Relationships

related to 08868 closedmdekker AuditLog plugoin : Can't create new user 

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-03-05 09:20

administrator   ~29097

Quit whining - it was hard to code, why should it be easy to use! :-p

lemeur

lemeur

2014-03-05 09:28

developer   ~29098

A fair response from a lazy developper ;-) [for people reading this, I emphasize the fact that it is a joke between Carsten and me].

These are my true first steps with LS2... (I'm only 4 years late), and I see so much to do, you still need me so much ;-)

c_schmitz

c_schmitz

2014-03-05 09:40

administrator   ~29099

We sure do need you! If you want to get up to speed again, you know where to find me ;). I will have a look at the audit plugin later today.

mdekker

mdekker

2014-03-18 11:14

reporter   ~29334

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=14022

mdekker

mdekker

2014-03-20 08:46

reporter   ~29427

Can you confirm that the issue is fixed using latest github please?

mdekker

mdekker

2014-07-03 12:35

reporter   ~30258

No feedback so seems to be ok

Related Changesets

LimeSurvey: master 883c925d

2014-03-18 10:14:16

mdekker

Details Diff
Fixed 08807: When the AuditLog plugin is active, you can't add a Participant in the central participant database
dev: other issues prevent me from testing, but due to behaviours the model is no longer the sender of the event
Affected Issues
08807
mod - plugins/AuditLog/AuditLog.php Diff File

Issue History

Date Modified Username Field Change
2014-03-04 17:58 lemeur New Issue
2014-03-04 18:18 lemeur Additional Information Updated
2014-03-05 09:20 c_schmitz Assigned To => c_schmitz
2014-03-05 09:20 c_schmitz Status new => assigned
2014-03-05 09:20 c_schmitz Note Added: 29097
2014-03-05 09:28 lemeur Note Added: 29098
2014-03-05 09:40 c_schmitz Note Added: 29099
2014-03-17 17:22 c_schmitz Relationship added related to 08868
2014-03-18 11:14 mdekker Changeset attached => LimeSurvey master 883c925d
2014-03-18 11:14 mdekker Note Added: 29334
2014-03-18 11:14 mdekker Assigned To c_schmitz => mdekker
2014-03-18 11:14 mdekker Resolution open => fixed
2014-03-20 08:46 mdekker Note Added: 29427
2014-03-20 08:46 mdekker Assigned To mdekker => lemeur
2014-03-20 08:46 mdekker Status assigned => feedback
2014-07-03 12:35 mdekker Note Added: 30258
2014-07-03 12:35 mdekker Status feedback => closed