Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F804062
D189.id456.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 26, 9:05 AM
Size
1001 B
Mime Type
text/x-diff
Expires
Thu, Feb 27, 9:05 AM (1 h, 16 m)
Engine
blob
Format
Raw Data
Handle
576776
Attached To
D189: INP-1527 User's profile update via AJAX support
D189.id456.diff
View Options
Index: core/units/users/users_event_handler.php
===================================================================
--- core/units/users/users_event_handler.php
+++ core/units/users/users_event_handler.php
@@ -154,7 +154,7 @@
return true;
}
- if ( $event->Name == 'OnUpdate' && $user_id > 0 ) {
+ if ( substr($event->Name, 0, 8) == 'OnUpdate' && $user_id > 0 ) {
$user_dummy = $this->Application->recallObject($event->Prefix . '.-item', null, Array ('skip_autoload' => true));
/* @var $user_dummy UsersItem */
@@ -906,6 +906,20 @@
}
/**
+ * Updates kDBItem via AJAX.
+ *
+ * @param kEvent $event Event.
+ *
+ * @return void
+ */
+ protected function OnUpdateAjax(kEvent $event)
+ {
+ /** @var AjaxFormHelper $ajax_form_helper */
+ $ajax_form_helper = $this->Application->recallObject('AjaxFormHelper');
+ $ajax_form_helper->transitEvent($event, 'OnUpdate');
+ }
+
+ /**
* Checks state against country
*
* @param kEvent $event
Event Timeline
Log In to Comment