https://redmine.gc.cuny.edu/https://redmine.gc.cuny.edu/favicon.ico2012-02-03T13:42:05ZCUNY Graduate Center - Project Tracking SystemCUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=58702012-02-03T13:42:05ZBoone Gorgesboone@gorg.es
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Hold</i></li></ul><p>It's hard for me to see how this could happen, looking at the code. Next time it happens on the live site, will you let me know right away, before you fix it, so that I can look at the database?</p> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=58722012-02-03T13:57:00ZMatt Goldmattgold@gmail.com
<ul></ul><p>Sure, but it might be worth creating your own sign-up and seeing what happens to it -- I'm not completely sure these codes have been used before they've disappeared.</p> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=59202012-02-09T00:50:54ZBoone Gorgesboone@gorg.es
<ul><li><strong>Target version</strong> changed from <i>1.3.6</i> to <i>1.3.7</i></li></ul> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=60482012-02-21T21:00:37ZBoone Gorgesboone@gorg.es
<ul><li><strong>Target version</strong> changed from <i>1.3.7</i> to <i>1.3.8</i></li></ul> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=61032012-02-24T00:47:13ZBoone Gorgesboone@gorg.es
<ul><li><strong>Target version</strong> changed from <i>1.3.8</i> to <i>1.3.9</i></li></ul> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=63562012-03-12T20:48:07ZBoone Gorgesboone@gorg.es
<ul><li><strong>Target version</strong> changed from <i>1.3.9</i> to <i>1.3.10</i></li></ul> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=65642012-03-29T14:18:31ZBoone Gorgesboone@gorg.es
<ul></ul><p>There appears to have been a change (in WP maybe? not sure) that caused the plugin not to show up in Dashboard menus. I doubt that this is causing the original problem in this ticket, but it's preventing me from doing proper testing. I've fixed these regressions in <a class="external" href="https://github.com/castiron/cac/commit/180a85dd4cd693b6a3ef79e67e8e37295401d609">https://github.com/castiron/cac/commit/180a85dd4cd693b6a3ef79e67e8e37295401d609</a> and will attempt to do more thorough testing in the next cycle.</p> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=65652012-03-29T14:19:22ZBoone Gorgesboone@gorg.es
<ul><li><strong>Target version</strong> changed from <i>1.3.10</i> to <i>1.3.11</i></li></ul> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=66032012-03-30T04:35:13ZMatt Goldmattgold@gmail.com
<ul></ul><p>Okay - thanks.</p> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=67012012-04-04T14:27:58ZBoone Gorgesboone@gorg.es
<ul><li><strong>Status</strong> changed from <i>Hold</i> to <i>Resolved</i></li></ul><p>After further examination, I think I found the culprit.</p>
<p>If you leave the post.php edit window open for a while (more than 2 minutes, by default), WP runs its autosave javascript, which in turn fires the `save_post` action. I'd been saving the custom post data (BP groups and signup code) on `save_post`. But WP's autosave is not aware of custom fields in the interface (which is IMO a glaring error, but anyway), with the result that my save method was detecting null values for these fields, in effect erasing them.</p>
<p>I've fixed this issue in <a class="external" href="https://github.com/castiron/cac/commit/2d7eb67c6ca601726c98c36d9b12b8dff06bc779">https://github.com/castiron/cac/commit/2d7eb67c6ca601726c98c36d9b12b8dff06bc779</a> by not running my routine on autosave. I'm tentatively marking this issue as resolved. Please reopen if it happens again.</p> CUNY Academic Commons - Bug #1614: Non-CUNY Sign-Up Code Disappears After Creationhttps://redmine.gc.cuny.edu/issues/1614?journal_id=67242012-04-05T05:50:58ZMatt Goldmattgold@gmail.com
<ul></ul><p>Awesome and nice catch. Thanks, Boone.</p>